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

Reply via email to