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 $?
Priority 1, Priority 2, Priority 3
Priority 1, Priority 0, Priority -1
Urgent, important, favour
Data loss, bug, enhancement
Out of scope, out of budget, out of line
Family, friends, work
Impossible, inconceivable, implemented
Results (57 votes),