- or download this
if ( $elt ne "and" )
{
...
{
$counter++;
}
- or download this
use strict;
use warnings;
...
}
}
print "counter = $counter\n", Dumper(\@bucket);
- or download this
counter = 2
$VAR1 = [
...
9
]
];
- or download this
use strict;
use warnings;
...
my $things = 'this and that and another brigand and a bandicoot';
my @bucket = split /\band\b/, $things;
print Dumper(\@bucket);
- or download this
$VAR1 = [
'this ',
...
' another brigand ',
' a bandicoot'
];