Category: | Utility Scripts |
Author/Contact Info | Juerd |
Description: | This code is very simple, and I think every experienced Perl coder can think of it. However, I use this twice a day, so it's useful to me. It might help out others, or at least make some of you toss away those old while(1) { print length(<>) - 1, "\n" } scripts that some people have. |
perl -ple'$_=length' |
|
---|
Replies are listed 'Best First'. | |
---|---|
(jeffa) Re: Length
by jeffa (Bishop) on Mar 14, 2002 at 14:02 UTC | |
by Juerd (Abbot) on Mar 14, 2002 at 16:55 UTC |