I personally believe that when 5.10's new -E switch is used in conjunction with -n, it should turn on autochomping similar to what -l does with both -n and -p. With -E in fact, one has say() which is precisely equivalent to -l's print(). (Unless one changes $\ that is.) Furthermore, -E enables all optional features which in turn import some Perl 6-ish syntax in Perl 5, and Perl 6 has autochomping on by default.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How 'bout autochomp on for -nE?
by moritz (Cardinal) on Jun 03, 2008 at 19:22 UTC | |
by blazar (Canon) on Jun 03, 2008 at 21:39 UTC | |
by tye (Sage) on Jun 04, 2008 at 03:42 UTC | |
by ambrus (Abbot) on Jun 04, 2008 at 09:14 UTC | |
by blazar (Canon) on Jun 04, 2008 at 08:53 UTC |