Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    
    print $c;
    
  2. 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
    
  3. 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
    
  4. or download this
    perl test.pl || if [ \$? -eq 255 ] ; then exit 254; fi
    
  5. or download this
    #!/usr/bin/perl -w
    
    ...
    Can't use an undefined value as a symbol reference at test.pl line 4.
    $ echo $?
    255