Help for this page

Select Code to Download


  1. or download this
    c:\@Work\Perl\monks>perl -le
    "use strict;
    ...
     sub foo (my $x) { my $x = 'hiya';  print $x; }
    "
    hiya
    
  2. or download this
    c:\@Work\Perl\monks>perl -le
    "use strict;
    ...
    Illegal character in prototype for main::foo : my$x at -e line 1.
    main::foo() called too early to check prototype at -e line 1.
    hiya