Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: String differs from printing to STDOUT and printing to file

by hippo (Archbishop)
on Oct 23, 2019 at 10:24 UTC ( [id://11107880]=note: print w/replies, xml ) Need Help??


in reply to String differs from printing to STDOUT and printing to file

As you are appending, perhaps the file originally terminates with a solo carriage return? Hexdump the file to see for sure. Alternatively, try with an overwrite instead of an append to see if the problem still exists.

  • Comment on Re: String differs from printing to STDOUT and printing to file

Replies are listed 'Best First'.
Re^2: String differs from printing to STDOUT and printing to file
by cboesch (Initiate) on Oct 23, 2019 at 10:35 UTC
    With an overwrite it's the same!
    Thanks, Christian

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2025-05-24 22:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.