$1 will give the string that matched "phone" but what will give (if anything) the expression that was matched "..one" ??$str = "phone"; $str =~ /(..one|[gn]one)/; print "string match = $1\n "; print "expression match = ????\n ";
In reply to Can you get the by paullos
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |