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