Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: replace text

by muba (Priest)
on Jul 11, 2013 at 15:30 UTC ( [id://1043761]=note: print w/replies, xml ) Need Help??


in reply to replace text

use warnings; # Great :) use strict; # Also great :) ... # Ok, so here you open the file for INPUT. Great :) open(my $fh, '<', $file) or die "Could not open file: $!"; ... # Ok, so here you show the line to the user, mutatis mutan +dis. print $line; ... # But where did you open the file for OUTPUT? # And where did you write the line (changed when applicable) to + the file? # This code is unnecessary. else { next; } }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-03-29 02:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found