Seeing open FHwithout matching close FHbothers me. The behavior might be correct -- heck, for all I know, Perl might even by design do the right thing -- but it jangles my OCD nerve.
open (FH, $f1) || die; # open file 1 in a file handle chomp(@strings = <FH>); # take off the line breaks --> close FH; open (FH, $f2) || die; # open file 2 in a file handle $text = join '', <FH>; # joins files 1 and 2? - I don't think I wa +nt to do this... --> close FH;
In reply to Re: search contents of one file and replace with contents of another to make a new file
by marinersk
in thread SOLVED!!!: search contents of one file and replace with contents of another to make a new file
by vcorby
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |