in reply to PERL exit code 255
I assume this is most likely caused by a die statement in your script:
$ perl -le 'die'
Died at -e line 1.
$ echo $?
Throwing nuclear weapons into the sun
Making everybody on Earth disappear
A threat from an alien with a mighty robot
A new technology or communications medium
Providing a magic fish to a Miss Universe
Establishing a Group mind
Results (157 votes). Check out past polls.