in reply to Re: How to print a newline in oneliners ...
in thread How to print a newline in oneliners ...

Yeah, that's what I was wondering. What about:

perl -E 'say for 1..10'

Update: I hadn't seen karlgoethebier's answer to Laurent_R when I posted this...

Replies are listed 'Best First'.
Re^3: How to print a newline in oneliners ...
by Anonymous Monk on Apr 22, 2014 at 19:31 UTC

    It's good, but -E doesn't work on the old Perls that are still around. Instead of trying to remember what the Perl version on the current system happens to be, or asking people what version of Perl they're running before giving them a one-liner to use, I've just gotten in the habit of staying backwards compatible and writing perl -le 'print for 1..10'