Help for this page
sub get_captures { my ($pattern, $line) = @_; ... shift(@captures); return @captures; }
sub get_captures { my ($pattern, $line) = @_; my @captures = $line =~ m/$pattern/; return @captures[0 .. $#+ - 1]; }