Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: Writing to a different file name

by gjb (Vicar)
on Dec 16, 2003 at 08:56 UTC ( #315010=note: print w/ replies, xml ) Need Help??

in reply to Writing to a different file name

One of the things that might go wrong is that you only read one line of $B_file, is this intensional?

Another potential problem is that you don't strip line endings from the line you read (no chomp) but write a \n to the output file nevertheless, so you may have an end-of-line too many.

And as pointed out above, the read operation might fail without you noticing since you don't check for errors after attempting to open $B_file.

Hope this helps, but yes, mentioning what kind of problems you have might help you even more ;) -gjb-

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2016-07-27 08:42 GMT
Find Nodes?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?

    Results (242 votes). Check out past polls.