in reply to Re: max .. min does not work
in thread max .. min does not work

Nor is it necessary to add "$_" to print, for that matter:
perl -le 'for (1..5) { print };'

Update: And golfing down a little more:

perl -le 'print for(1..5)'

Replies are listed 'Best First'.
Re^3: max .. min does not work
by AltBlue (Chaplain) on Jul 23, 2008 at 19:20 UTC
    Nor are the parentheses in this reversed form ;-)
    perl -le 'print for 1..5'
    Update: Of course, we could drop for too, but that won't help golfing: perl -le '$,=$/; print 1..5' :)
Re^3: max .. min does not work
by olus (Curate) on Jul 23, 2008 at 16:48 UTC

    :o) You are right of course. My intention was not to golf the code. It's just that I find that \n a bit messy, and thus just tried to show something a bit cleaner. But yours are pretty readable as well.