in reply to Using constants...

constants.pl:
use constant test => 3; 1;
test.pl:
#!/usr/bin/perl require 'constants.pl'; print main->test;
print 3

Replies are listed 'Best First'.
Re^2: Using constants...
by Anonymous Monk on Nov 18, 2009 at 09:58 UTC
    That defeats the purpose, he wanted to export constants