http://www.perlmonks.org?node_id=999469


in reply to Re^2: CSH script that calls a perl script
in thread CSH script that calls a perl script

Would you be happy with your Perl script returning 0 for success and 255 for failure? If so, take note...

$ perl -e'die'; echo "GOT $?" Died at -e line 1. GOT 255 $ perl -e'exit'; echo "GOT $?" GOT 0
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'