http://qs321.pair.com?node_id=263546


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:

use constant PIE => "Warm Apple"; print "pie: ", PIE, "\n";
Update: Fixed the typo from '=' to '=>' in the use line. Thanks merlyn.

kelan


Perl6 Grammar Student