As for basic issues, you cannot edit a file directly from Perl. You (generally) have to:
I suspect you're missing the first close and second open. That's a common mistake among newbies. To match the above 7 steps to your needs, you'll need to repeat steps 1-3 for both files.
------
We are the carpenters and bricklayers of the Information Age.
The idea is a little like C++ templates, except not quite so brain-meltingly complicated. -- TheDamian, Exegesis 6
Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.
In reply to Re: Comparing files and and elements of arrays
by dragonchild
in thread Comparing files and and elements of arrays
by sjd6
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |