Help for this page

Select Code to Download


  1. or download this
    use strict;
    my @dat=[qw(foo bar)];
    ...
    
    Can't use string ("foobar") as an ARRAY ref while "strict refs" in use
    + at (eval 25)[/usr/share/perl5/core_perl/perl5db.pl:741] line 2.
    
  2. or download this
    use strict;
    my @dat=[qw(foo bar)];
    for (@dat){
     push (my @u, [$_->[0], $_->[1]])
    }