Also note that constant won't let you declare constants like $1. These kinds of variables have special properties and declaring them constant would be a bad thing, if even possible.
And constants are not used like normal variables:
# You don't declare a constant like this: use constant $FOO => 1; # bad # You do it this way use constant FOO => 1; # And use it like this: print FOO;
Ted Young
($$<<$$=>$$<=>$$<=$$>>$$) always returns 1. :-)In reply to Re: Define constant in loop
by TedYoung
in thread Define constant in loop
by penantes
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |