in reply to capture errors from eval

Maybe...?

eval { eval $w }
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'

Replies are listed 'Best First'.
Re^2: capture errors from eval
by sdetweil (Sexton) on Sep 23, 2012 at 21:30 UTC
    sorry, actually this does work!.. had two places and only tested on one (the wrong one obviously!).. thank you
Re^2: capture errors from eval
by sdetweil (Sexton) on Sep 23, 2012 at 21:19 UTC
    sorry, dumb answer.. only tested in one of two places.. this works great and $@ contains the error text..