go ahead... be a heretic | |
PerlMonks |
Re^3: When doesn't the flip-flop operator work in all scalar contexts?by ikegami (Patriarch) |
on Oct 02, 2008 at 19:31 UTC ( [id://715079]=note: print w/replies, xml ) | Need Help?? |
means
so to do the same with a loop which counts over something other than $., you have specify it explicitly.
Short: Anything that Perl converts to a constant at compile-time.
Long: A constant expression is known to Perl to always return the same result. It includes constants (including those created by constant), most operators operating on constants, some builtin functions, and functions with the () prototype whose body consist entirely of a constant expression (as per Constant Functions in perlsub). Given
Example of constant expressions:
In Section
Seekers of Perl Wisdom
|
|