in reply to Splitting on unprintables

Try:
$/ = "\x0a";
Single-quoted strings don't use escape characters like "\n" or "\x".