backreferences in perlre are used to be written \1, \2 ... tweetiepooh informs me that my perldoc used was outdated... and ikegami again corrects that.
Update: your programme prints "This is fish".
What did you expect it to print? "This is fish 1"?
Further update: see ikegami's solution below.
Third and then fourth update - in italics
Cheers, Sören
In reply to Re: How do I pass $1 to s///?
by Happy-the-monk
in thread How do I pass $1 to s///?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |