Help for this page
use strict; use warnings; ... @match = $str =~ /^(foo bar)/m; # this one! print Dumper \@match;