Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 drinking their drinks and smoking their pipes about the Monastery: (11)
As of 2014-10-02 13:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (60 votes), past polls