in reply to Returning Error Codes
(Those who answered with die(), with 'best practices', or even with 'common practices' are avoiding to answer directly the poster's question.)
foo(); $@{0} ? print "error: $@{0}" : print 'ok'; sub foo { $@{0} = 'proxy error' }
|
|---|