Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^2: how to find the length of any line of file -- onelinerby Discipulus (Canon) |
on Nov 23, 2017 at 08:52 UTC ( [id://1204116]=note: print w/replies, xml ) | Need Help?? |
He! no need of BEGIN block nor say and chomp perl -lne "print length and exit if $. == 4" the above will work with data passed via pipe and also with a filename passed as argument. L*
There are no rules, there are no thumbs.. Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
In Section
Seekers of Perl Wisdom
|
|