Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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

by hippo (Bishop)
on Oct 23, 2019 at 10:24 UTC ( #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? | Other CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2023-10-01 06:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?