syphilis has asked for the wisdom of the Perl Monks concerning the following question:
What am I failing to understand ?D:\>perl -wle "`exit 1`; print $?;" 256 D:\>perl -wle "`exit(1)`; print $?;" 0 D:\>perl -wle "`exit 2`; print $?;" 512 D:\>perl -wle "`exit(2)`; print $?;" 0 D:\>perl -wle "$x = 1;`exit $x`; print $?;" 256 D:\>perl -wle "$x = 1;`exit($x)`; print $?;" 0
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: "exit 1" and "exit(1)" are apparently not the same
by roho (Bishop) on Nov 19, 2023 at 06:23 UTC | |
by syphilis (Archbishop) on Nov 19, 2023 at 07:57 UTC | |
Re: "exit 1" and "exit(1)" are apparently not the same
by ikegami (Patriarch) on Nov 20, 2023 at 16:57 UTC | |
Re: "exit 1" and "exit(1)" are apparently not the same
by sectokia (Friar) on Nov 20, 2023 at 03:07 UTC | |
Re: "exit 1" and "exit(1)" are apparently not the same
by ikegami (Patriarch) on Jan 15, 2025 at 13:54 UTC | |
Re: "exit 1" and "exit(1)" are apparently not the same
by etj (Priest) on Jan 15, 2025 at 10:43 UTC | |
Re: "exit 1" and "exit(1)" are apparently not the same
by Anonymous Monk on Jan 15, 2025 at 12:45 UTC |