Help for this page

Select Code to Download


  1. or download this
    $ perl -E 'use strict; my @x = qw{a b c}; my $y = @x; say $y->[1]'
    Can't use string ("3") as an ARRAY ref while "strict refs" in use at -
    +e line 1.
    
  2. or download this
    $ perl -E 'use strict; my @x = qw{a b c}; my $y = \@x; say $y->[1]'
    b