in reply to accessing backreferences
You want to use eval() to convert your iterator into something usable, like so:
perl -e "$a = qq(foo); $a =~ m/(foo)/; $s = 1; $xx = eval('\$$s');pri +nt $$xx; "
Celebrate Intellectual Diversity
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: accessing backreferences
by merlyn (Sage) on Mar 09, 2001 at 23:23 UTC |