http://www.perlmonks.org?node_id=818454


in reply to Should look at C
in thread native exit codes 512 and 2304

Here's a quick and dirty way of translating exit codes to their C error strings:
local $! = 512 >> 8; print "$!\n";
BUT you should be careful! Not everyone uses the C runtime-library error numbers. Exit codes are application specific, they should be listed in the application documentation.