Help for this page
$foo = '\$bar'; # put the backslash in yourself $bar = 'snafu'; ... print $_,"\n"; s/$foo/BAR/g; print $_,"\n";