in reply to Finding $ character

I managed to get:
my $string = 'aa$aa'; $string =~ s/\$/tmp/g; print "$string\n";
to produce:
aatmpaa
What was in your string? What output did you get and what did you expect?