Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: File Writing and newline

by Speedy (Monk)
on Feb 06, 2002 at 18:00 UTC ( [id://143655]=note: print w/replies, xml ) Need Help??

in reply to File Writing and newline

"perldoc -f print"

indicates that the output record separator $\ is printed at the end of each list. I suspect that the output record separator "$\" has somehow gotten set to "\n" rather than a null value.

At the start of the subroutine, try:

$\ = "";

to reset the output record separator and see if it does the trick.

Replies are listed 'Best First'.
Re: Re: File Writing and newline
by particle (Vicar) on Feb 06, 2002 at 18:10 UTC
    local $\=''; would be much safer, as it make sure the variable returns to it's previous state when it goes out of scope.


Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-05-20 06:31 GMT
Find Nodes?
    Voting Booth?

    No recent polls found