in reply to File handle problems

The problem is that you can't can't assign to the number variables e.g
shell> perl -e '$1 = "bang"' Modification of a read-only value attempted at -e line 1.
I'm guessing you mean to do a match instead using the =~ operator. See. the perlop and perlre for more info on the matching operator and the number variables.
HTH

_________
broquaint