There's more than one way to do things | |
PerlMonks |
Re^5: Dynamically Changing Packages w/out Evalby betterworld (Curate) |
on Aug 24, 2009 at 19:54 UTC ( [id://790909]=note: print w/replies, xml ) | Need Help?? |
I avoid eval out of habit. Even if you make sure that you don't eval user input and keep the evaluated code minimal, it's still annoying to debug warnings like "Argument isn't numeric at eval 2718, line 314". Though you're right that my code looks a bit obfuscated.
In Section
Seekers of Perl Wisdom
|
|