Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Changing file contents

by zby (Vicar)
on May 29, 2003 at 08:53 UTC ( [id://261515]=note: print w/replies, xml ) Need Help??


in reply to Changing file contents

You have rnahi's answer - it's a shortcut, no offence but I think it's a bit too magic for your level of perl mastery. Here are my instructions:
  • Learn how to open a file handle -  perldoc -f open
  • Learn how to read the file content -  perldoc perlop look for the <> operator.
  • Learn Perl regular expressions -  perldoc perlre
  • Learn the substitution operator  perldoc perlop look for  s/PATTERN/REPLACEMENT/egimosx
  • Learn how to write to a file -  perldoc -f print
Then the progarm should be obvious.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://261515]
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: (1)
As of 2024-04-25 01:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found