Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: Annoying whitespace(s)...

by Rhys (Pilgrim)
on Sep 05, 2004 at 21:20 UTC ( #388662=note: print w/ replies, xml ) Need Help??

in reply to Annoying whitespace(s)...

It's because it doesn't append to the file. It reads the entire file, then writes the entire file and writes the new addy after re-writing the previous contents.

The space gets in there because the author uses $Buffer to hold the previous contents. $Buffer is initialized with:

$Buffer = ' ';

Pretty silly. Just look for this line and remove the space.


Comment on Re: Annoying whitespace(s)...
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2015-11-29 17:58 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (751 votes), past polls