Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Unable to write to file

by papidave (Monk)
on May 10, 2011 at 22:52 UTC ( #904042=note: print w/ replies, xml ) Need Help??


in reply to Unable to write to file

I'm assuming, based on the errors with == comparison of id1 and id2, that you meant to put newlines in your input files, e.g. for input_at.txt:

aaa,1 bbb,2 ccc,3
and for input_ac.txt:
1,a 3,b 2,c

Like the prior poster, I am also able to get this code to run on my Linux box, though the output is kind of munged. You may want to chomp the line read from FHAC before you split it, then put newlines explicitly where you want them in the output stream. I have seen funky errors with i/o when you don't insert newlines, though the close() call should flush all your streams for you.


Comment on Re: Unable to write to file
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2014-12-25 07:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (159 votes), past polls