Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: substitution in files

by hilitai (Monk)
on Aug 25, 2007 at 23:31 UTC ( [id://635075]=note: print w/replies, xml ) Need Help??


in reply to substitution

As Cody pointed out, you're not printing to the file.
print $line;
prints $line to STDOUT, not to the file. You need to specify the filehandle name in the print statement, for example,
print FIL $line;
.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2024-04-19 11:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found