Help for this page

Select Code to Download


  1. or download this
    package Consts;
    
    use constant PI => 3;    # We're REALLY approximate, here.
    
    "Some true value as the last statement.";
    
  2. or download this
    #!/usr/bin/perl -w
    use strict;
    use Consts;
    
    print "Pi is:", Consts::PI, $\;