Do you know where your variables are? | |
PerlMonks |
Spot the bug!by tlm (Prior) |
on Oct 25, 2006 at 21:03 UTC ( [id://580652]=perlmeditation: print w/replies, xml ) | Need Help?? |
Just got my butt chomped by this one, so I thought I'd share. What's wrong with this function? The answer does not depend on the definition of bar. E.g. let bar be
To see what's wrong, try this:
The moral of the story: never use @_ inside an eval. the lowliest monk
Back to
Meditations
|
|