Help for this page

Select Code to Download


  1. or download this
    package MyConstants;
    require Exporter;
    ...
    use constant C1 => 'blah';
    use constant C2 => 'foo';
    1;
    
  2. or download this
    #!/usr/bin/perl
    use MyConstants.pm
    ...
    ...
    # do something with the constants from MyConstants.pm
    ...
    
  3. or download this
    ...
    use MyConstants.pm;
    ...
    # do something with the constants from MyConstants.pm
    ...