P is for Practical | |
PerlMonks |
Re^2: RFC: User subroutine hinting interface for autodieby pjf (Curate) |
on Mar 05, 2009 at 13:11 UTC ( [id://748516]=note: print w/replies, xml ) | Need Help?? |
autodie doesn't change what a subroutine returns, it only causes subroutines to throw an exception if that subroutine would have returned in failure. The exception to this is autodying system, which returns the exit value, rather than $?. If the command doesn't get around to exiting (because it's killed by a signal, or failure to start), then it doesn't return, it throws an exception instead.
Paul Fenwick Perl Training Australia
In Section
Meditations
|
|