Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Corrector

by quinkan (Monk)
on Dec 13, 2008 at 06:02 UTC ( #730109=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use File::Slurp:
    # get one file here, as $file
    ...
     $text =~ s/this/that/smg;
     rename($file, $bakfile);
     write_file($file, $text);
    
  2. or download this
    use Perl6::Slurp;        #<= only handles input at present
    use File::Slurp;         # permits writing.
    ...
    ... with renaming here ? (see above).
     write_file($file, $text);
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2015-07-07 04:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (87 votes), past polls