in reply to accessing backreferences
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: accessing backreferences
by YaRness (Initiate) on Mar 15, 2001 at 01:32 UTC |