Perl Monk, Perl Meditation | |
PerlMonks |
Re: explanation of constant syntax?by meonkeys (Chaplain) |
on Mar 20, 2004 at 17:57 UTC ( [id://338329]=note: print w/replies, xml ) | Need Help?? |
I understand that the bareword FOO inside the parens is similar to when it's inside @{[...]} because it causes the subroutine created by the constant pragma to be called rather than FOO to simply be used as a hash key. Would you elucidate on why this happens or point me to the right perldoc to read on this subject?
--- "A Jedi uses the Force for knowledge and defense, never for attack."
In Section
Seekers of Perl Wisdom
|
|