Stanisław T. Findeisen wrote:
<snip>
Funny thing is that in two.pl MyPackage->MY_FIRST_CONSTANT works, but
neither of these:
print '' . MY_FIRST_CONSTANT . "\n";
print '' . MyPackage::MY_FIRST_CONSTANT . "\n";
Concatenation seems like a bad idea. Try:
print MY_FIRST_CONSTANT, "\n";
print MyPackage::MY_FIRST_CONSTANT, "\n";
(untested)
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/