in reply to How to print the dollar sign.

The trick is explained in perldoc perlop, in the "Quote and Quote-like Operators" section. You need to use non-interpolating quotes, or escape the $ properly (\$, not $/). Per perldoc perlvar, $/ contains the input record separator (newline by default).