Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: substitution in $0

by Abigail-II (Bishop)
on Oct 02, 2002 at 13:34 UTC ( [id://202261]=note: print w/replies, xml ) Need Help??


in reply to substitution in $0

How did you manage to double the content without having a print statement? Don't just follow the advice of the people who suggested to use +< in the open. You probably need it, but you need more too. You cannot simply read a line, write a line in a file that you have open for read/write - it will garble your data horribly.

But since your code fragment doesn't show any print statements, I expect your real code is different anyway.

Abigail

Log In?
Username:
Password:

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

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

    No recent polls found