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: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to