Help for this page

Select Code to Download


  1. or download this
    [0] Perl> $a = [ qw(mary had a little lamb with mint jelly) ];;
    [0] Perl> $b = [ @{ $a }[ 1 .. 4 ] ];;
    [0] Perl> print @$b;;
    had a little lamb
    
  2. or download this
    Using an array as a reference is deprecated at ...
    Argument "" isn't numeric in array element at ...