Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Unicode problem

by Errto (Vicar)
on Aug 20, 2007 at 18:14 UTC ( #633896=note: print w/ replies, xml ) Need Help??


in reply to Unicode problem

The issue may have to do with the way newlines are handled in Windows. First see what happens if you read and write the entire file at once rather than line by line:

undef $/; my $content = <$MASTER>; print $CONFIG $content;
If that works fine, my theory is probably right. If you do still want to use line-by-line transfer, I believe you can add :unix to the layers on your open calls.


Comment on Re: Unicode problem
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2014-12-25 15:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (160 votes), past polls