in reply to Re: Re: My vacation depends on it
in thread My vacation depends on it

Everything arturo says, plus:

1. The string comparison operator is "eq", not "==".

2. You're opening /var/www/html/$catfile for writing, but you're not actually writing to it.

Replace   print "$line"; with   print NOT $line;