in reply to Re: How to eval an array element in regex's substitution
in thread How to eval an array element in regex's substitution
How to eval the $s's value?$s =~ s/(\[\d{1,2}\])/$a$1/g; #output Hello $a[2]$a[1] # eval '$s="$s";'; ## Here ?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to eval an array element in regex's substitution
by ikegami (Patriarch) on Oct 27, 2010 at 06:48 UTC |