|
|
| P is for Practical | |
| PerlMonks |
Re: eval inside an objectby g0n (Priest) |
| on Apr 28, 2005 at 05:34 UTC ( [id://452241]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
Slightly OT, but probably worth mentioning. Eval is indeed cool, but it has its evil side. E.g the following code:
Eval saved me once upon a time from having to learn that code b was possible. BUT, since I was calling this tens of thousands of times in normal program execution, and hence invoking the compiler every time, once I did learn that code b was possible, the program speeded up by several hundred fold! The moral - eval is cool, but very very slow!
g0n, backpropagated monk
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||