in reply to accessing the result of a match as an array
The question is wrong. Don't use two captures if you're only need one.
print "hello awesome" =~ /el.*(om)/;
In Section
Seekers of Perl Wisdom
in reply to accessing the result of a match as an array
print "hello awesome" =~ /el.*(om)/;