Keep It Simple, Stupid | |
PerlMonks |
Re: understanding eval in HPOJby broquaint (Abbot) |
on Apr 04, 2004 at 21:37 UTC ( [id://342520]=note: print w/replies, xml ) | Need Help?? |
What odd code - the first eval will always produce an error e.g
So the second eval will never get used, and even if it did, that would also bail out (although, rather frighteningly, it's valid perl code; indirect object syntax is to blame :/) e.g From here it looks like some seriously fruity mix of shell and perl that can never work. However your second concotion looks far more likely to succeed.
HTH
_________ update: tidied up second code example and added side note that it actually compiles (ick)
In Section
Seekers of Perl Wisdom
|
|