in reply to Re: perl one-liner doesn't autochomp input
in thread perl one-liner doesn't autochomp input
$ ls | perl -l72pe1
This works and seems equivalent to
$ ls | perl -l72pe "{}"
But I don't understand the role of "1" (or digits in general) at the end of the command line, and I can't find any explanation in perlrun. I thought that they might affect the way that arguments are processed, but that doesn't seem right. Can someone clarify?
Thanks,
--John
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: perl one-liner doesn't autochomp input
by Aristotle (Chancellor) on Sep 07, 2004 at 18:16 UTC | |
Re^3: perl one-liner doesn't autochomp input
by Anonymous Monk on Sep 07, 2004 at 13:05 UTC |