in reply to novice 'die' help requested

In my experience, you shouldn't pass $@ to functions. Pass a copy of it instead
log_error( "$@" );

Replies are listed 'Best First'.
Re^2: novice 'die' help requested
by f00li5h (Chaplain) on Jan 11, 2007 at 23:21 UTC

    ... Ofcourse, $@ gets stringafied here, so if it is an Exception object (or, if you want to be perverse, a hashref) it'll get magled, with differing degress of success. (Although most exceptions stringify nicely, so that you can read if they're uncaught, and reach your terminal.)

    perhaps log_error( my $something_else = $@ ) to copy it? ...

    @_=qw; ask f00li5h to appear and remain for a moment of pretend better than a lifetime;;s;;@_[map hex,split'',B204316D8C2A4516DE];;y/05/os/&print;