- or download this
$count = @count = $data =~ m/and/g; and it works ok
- or download this
$count = () = $data =~ m/and/g;
- or download this
$_ = 'foo and bar and baz went to the sea.';
@pairs = /(and)(?=\W*(\w+))/g;
print join "#", @pairs;
- or download this
$data = 'foo and bar and baz went to the sea.';
@pairs = $data =~ /(and)(?=\W*(\w+))/g;
print "@pairs";
- or download this
@pairs = /(and)(?=\W*(\w+))/g;
- or download this
@pairs = $data =~ /(and)(?=\W*(\w+))/g;