Help for this page

Select Code to Download


  1. or download this
    my @foo = qw/1 2 3 4 5 6/;
    print "Index 1 is $foo[1]\n";
    
  2. or download this
    my @foo = qw/1 2 3 4 5 6/;
    my @bar = splice @foo, 1,2;
    print "Indexes 1 & 2 are @bar\n";