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