On Wed, Jan 27, 2016 at 11:10:22PM -0500, Felipe Gasper wrote: > ($? >> 8) is not truthy when $? == 255, so Perl should be exiting 255 … per > that algorithm. $? is initially set to 255 by die() using the algorithm you described, since neither $! nor $? are truthy. Later on, after the algorithm has set $?, you set $? to 256, and that's used as the value passed to exit(). TonyThread Previous | Thread Next