Just another Perl shrine | |
PerlMonks |
Re: Try string, not blockby GrandFather (Saint) |
on Sep 12, 2012 at 08:15 UTC ( [id://993176]=note: print w/replies, xml ) | Need Help?? |
Don't use string eval. Use block eval instead. Try::Tiny is pretty much just syntactic sugar wrapped around a block eval in any case. String eval is open to vast abuse and, for the code you have shown, is simply not needed. If you do need to use string eval ugly is good.
True laziness is hard work
In Section
Seekers of Perl Wisdom
|
|