As it's a constant expression, Perl tries to evaluate it at compile time and (as you've seen) fails.
See Sean Burke's article Constants in Perl.
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re: Variables in eval funcation
by davorg
in thread Variables in eval funcation
by santhanamv
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |