Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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 rifling through the Monastery: (4)
As of 2014-08-21 04:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (127 votes), past polls