in reply to How to create a "CONSTANT"
There's a pragma designed for constants. 'perldoc constant' for the manpage, but basically, it's like this:
Update: Fixed the typo from '=' to '=>' in the use line. Thanks merlyn.use constant PIE => "Warm Apple"; print "pie: ", PIE, "\n";
kelan
Perl6 Grammar Student
|
---|
In Section
Seekers of Perl Wisdom