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

Re: Perl Command Help

by aitap (Curate)
on Dec 20, 2013 at 20:02 UTC ( [id://1067987]=note: print w/replies, xml ) Need Help??


in reply to Perl Command Help

In addition to the previous comments, Perl can be used like sed to edit files on the fly if ran with the -i switch (often used with -p) in the command line or the hashbang line.

If you write your program for -i and -p switches, all your code needs to do is to change the $_ variable which equals to the current line of the file being edited (the code is re-ran on each line sequentially). Read perlrun for more information on this topic.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-03-29 07:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found