Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: multiple file operations using perl one-liners

by morgon (Curate)
on May 17, 2009 at 22:36 UTC ( #764564=note: print w/replies, xml ) Need Help??


in reply to Re^2: multiple file operations using perl one-liners
in thread multiple file operations using perl one-liners

-n + chomp can be replaced with -nl
Thanks - quite useful to know.

Gotta re-read the perlrun-manpage.

  • Comment on Re^3: multiple file operations using perl one-liners

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://764564]
help
Chatterbox?
[Discipulus]: really?
[Corion]: :-D
[Discipulus]: i was kidding.. and i was kidded:perl -lne " if (length $_ > $l){$l=length $_;$w=$_}}{print qq($w $l\n)" linux.words

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2017-10-18 08:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (243 votes). Check out past polls.

    Notices?