- or download this
my $text = <<TEXT;
...
use Data::Dump qw(dump);
print dump(\@answers);
- or download this
(
["The Moor's Last Sigh", "Salman", "Rushdie"],
["The God of Small Things", "Arundhati", "Roy"],
)
- or download this
if ($text =~ /$re1/mgc) { ...
if ($text =~ /$re2/mgc) { ...
if ($text =~ /$re1/mgc) { ...
if ($text =~ /$re2/mgc) { ...
- or download this
# return ($1, $2, ...) matched against $s
sub _groups {
...
}
return @groups
}
- or download this
push @answers, [ _groups($text) ]; # [ ($1, $2, ...) ]