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 reply to Re: How to create a "CONSTANT"
by kelan
in thread How to create a "CONSTANT"
by freddo411
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |