Use constant PI : Pragmas « Language Basics « Perl






Use constant PI

   

use constant PI                  => 4 * atan2 1, 1;

print "Pi = ", PI;

   
    
    
  








Related examples in the same category

1.Debug flag
2.Syntac of using a module
3.The diagnostics Pragma
4.The strict Pragma and Words
5.The warnings Pragma and the -w Switch