Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re(2): File Handle Basics

by Arien (Pilgrim)
on Sep 04, 2002 at 00:17 UTC ( [id://194948]=note: print w/replies, xml ) Need Help??


in reply to Re: File Handle Basics
in thread File Handle Basics

You want -p for the impicit loop and print, instead of -n wich just loops.

Also, since I've picked up Golf recently...

perl -i -lpe'/^%/?--$.:s/^(?:N\d+\s?)?/N$. /'

— Arien

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://194948]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (None)
    As of 2025-01-13 09:54 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?
      Which URL do you most often use to access this site?












      Results (28 votes). Check out past polls.