Alternatively, remember that unless you changed it for slurp mode or whatnot, $/ is a newline.
In reply to Re^3: On bad habits by kaif in thread On bad habits by g0n