#!/usr/bin/perl -w use strict; print $c; #### $ perl ~/test.pl Global symbol "$c" requires explicit package name (did you forget to declare "my $c"?) at /home/javi/test.pl line 4. Execution of /home/javi/test.pl aborted due to compilation errors. $ echo $? 255 #### $ ssh localhost perl ~/test.pl Global symbol "$c" requires explicit package name (did you forget to declare "my $c"?) at /home/javi/test.pl line 4. Execution of /home/javi/test.pl aborted due to compilation errors. $ echo $? 255 #### perl test.pl || if [ \$? -eq 255 ] ; then exit 254; fi #### #!/usr/bin/perl -w print "a\n"; print $c-d; $ perl test.pl Name "main::c" used only once: possible typo at test.pl line 4. a Can't use an undefined value as a symbol reference at test.pl line 4. $ echo $? 255