Help for this page

Select Code to Download


  1. or download this
    >perl -we"@x = @x[1]"
    Scalar value @x[1] better written as $x[1] at -e line 1.
    
  2. or download this
    my $ele = $array[1];        # Array index
    my @eles = @array[1,2,3];   # Array slice