more useful options | |
PerlMonks |
Re^2: Embedding a mini-language for XML construction into Perlby tmoertel (Chaplain) |
on Nov 19, 2005 at 18:27 UTC ( [id://510129]=note: print w/replies, xml ) | Need Help?? |
I had considered not using eval, but in this case I could see no practical advantage to the alternatives – and eval was more consistent with my goal of simplicity. For non-trivial uses, however, I agree that eval's costs (e.g., quoting clutter, parsing overhead, and security concerns) almost always outweigh its benefits.
Still, if you think there is something inherently evil about eval that ought to eliminate it from all consideration, I would be interested in hearing your reasoning. Thanks for your comment. Cheers, Tom Moertel : Blog / Talks / CPAN / LectroTest / PXSL / Coffee / Movie Rating Decoder
In Section
Meditations
|
|