tej has asked for the wisdom of the Perl Monks concerning the following question:
What is the use of ${1} in the below statement instead of $1?
$text =~ s/(<jrnl\;\d+\;)[^>]*(>)/${1}${annualIssue}\;${first}\\N${last}${2}/gs;Thank you
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: what is the use of derefernce in substitution?
by moritz (Cardinal) on Sep 22, 2011 at 11:48 UTC | |
|
Re: what is the use of derefernce in substitution?
by jwkrahn (Abbot) on Sep 22, 2011 at 11:45 UTC | |
|
Re: what is the use of derefernce in substitution?
by Kc12349 (Monk) on Sep 22, 2011 at 18:12 UTC |