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