Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: add text to each line of a file

by ambrus (Abbot)
on Mar 10, 2005 at 22:07 UTC ( [id://438440]=note: print w/replies, xml ) Need Help??


in reply to Re: add text to each line of a file
in thread add text to each line of a file

Why chomp? I belive the -l option chomps the line automatically. (See perlrun.)

Replies are listed 'Best First'.
Re^3: add text to each line of a file
by thor (Priest) on Mar 11, 2005 at 01:08 UTC
    You're absolutely right! I hardly ever use -n or -p, so I forgot about the "other" effect of -l. Thanks!

    thor

    Feel the white light, the light within
    Be your own disciple, fan the sparks of will
    For all of us waiting, your kingdom will come

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2024-04-26 08:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found