Perl $? and shell $? are not quite the same thing, and AFAIK never have been: http://perldoc.perl.org/perlvar.html#$CHILD_ERROR
On Tue, Jul 12, 2011 at 10:43 AM, Greg London <[email protected]> wrote: > > I have a perl script which runs a bunch of unix commands via backticks. > After the backticks, the perl script checks $? to see if the command > actually worked. > > It works fine for several dozen commands. The last command calls a > verilog simulator tool. According to perl, $? is 256 after calling > the simulator. > > When I run the simulator command manually on the command line, > then tell bash to spit out $?, this is what I get > >> echo $? > 1 > > Why would perl munge 1 into 256? > > Greg > > > _______________________________________________ > Boston-pm mailing list > [email protected] > http://mail.pm.org/mailman/listinfo/boston-pm > _______________________________________________ Boston-pm mailing list [email protected] http://mail.pm.org/mailman/listinfo/boston-pm

