use strict; if (my @matches = /(f.o)(b.r)(b.z)/) { print "Match # $_ is $matches[$_-1]\n" for 1..@matches; }
-- Randal L. Schwartz, Perl hacker
In reply to Re: accessing backreferences
by merlyn
in thread accessing backreferences
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |