in reply to Substitution backreference woes

With my $substitution = 'Goodbye \1'; which is obviously not a regex, which regex "group" are you back-referring to?

Check this however:

my $string = "Hello sailor"; my $regex = qr/Hello (.*)/; $string =~ s/$regex/Goodbye \1/; print "string is now $string \n";

If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me