In that example there is no difference between ${1} or ${2} and $1 or $2.
It could just as well be written as:
$text =~ s/(<jrnl;\d+;)[^>]*(>)/$1$annualIssue;$first\\N$last$2/gs;
In reply to Re: what is the use of derefernce in substitution?
by jwkrahn
in thread what is the use of derefernce in substitution?
by tej
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |