in reply to Re: Re: Cropping the output of the pattern matcher
in thread Cropping the output of the pattern matcher
my $line = "a whole lotta shakin >pattern here< goin on";
my @bits_and_pieces = split /></, $line;
(all the string)'a whole lotta shakin >pattern here< goin on'
my $line = "a whole lotta shakin ><pattern here>< goin on"; my @bits_and_pieces = split /></, $line;
('a whole lotta shakin ','pattern here',' goin on')
is printedprint @bits_and_pieces;
as if the delimiters '><' where removed from the array.'a whole lotta shakin pattern here goin on'
|
|---|