|
|
| Do you know where your variables are? | |
| PerlMonks |
Re: Writing to a different file nameby gjb (Vicar) |
| on Dec 16, 2003 at 03:56 UTC ( [id://315010]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
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-
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||