Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: replace text

by muba (Priest)
on Jul 11, 2013 at 15:30 UTC ( #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
Node Status?
node history
Node Type: note [id://1043761]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (10)
As of 2019-06-26 08:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Is there a future for codeless software?



    Results (109 votes). Check out past polls.

    Notices?