Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: substuting a whole file

by jweed (Chaplain)
on Jan 14, 2004 at 03:35 UTC ( [id://321176]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $file = "index.html";
    
    my @codes = ("<P>", "<BR>", "UL"); # and many more
    
  2. or download this
    open(FILE, "> $file") or die "Oops: $!";
    while(<FILE>);
    
  3. or download this
    if ($_ eq @words) {
    $_ =~ s/@words/lc @word/g;
    }
    
  4. or download this
    close(FILE);
    
  5. or download this
    #!/usr/bin/perl -i
    use warnings;
    ...
    $_ =~ s/$word/lc $word/g;
    }
    close(FILE);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://321176]
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: (5)
As of 2024-03-29 09:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found