laziness, impatience, and hubris | |
PerlMonks |
what is the use of derefernce in substitution?by tej (Scribe) |
on Sep 22, 2011 at 11:39 UTC ( [id://927329]=perlquestion: print w/replies, xml ) | Need Help?? |
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
Back to
Seekers of Perl Wisdom
|
|