in reply to Try string, not block
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.
|
|---|