Just another Perl shrine | |
PerlMonks |
Re: perl one-liner doesn't autochomp inputby broquaint (Abbot) |
on Sep 07, 2004 at 10:05 UTC ( [id://388977]=note: print w/replies, xml ) | Need Help?? |
The first effect of using -l is better documented in perlrun
It has two separate effects. First, it automatically chomps $/ (the input record separator) when used with -n or -p.Not taking full advantage of perl's you could always write your one-liner like this
HTH
_________
In Section
Seekers of Perl Wisdom
|
|