use strict; use warnings; my $r=qx(set|perl -lwe "print ; exit 1"); print "$?\n";