Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    ...
            #  The references are the array resulting from split, using []
            push(@strings, [split /\s/]) foreach (@smallarray);
    }
    
  2. or download this
    #       The array of anonymous arrays now looks like this:
    #
    ...
    #                       'kkk',
    #                       'lll'
    #               ];
    
  3. or download this
    #  Print out the whole AoA contents
    foreach my $arrayref (@strings) {
    ...
    bbb
    ccc