in reply to newbie quoting question

The parens are being interpreted as special chars inside the regex. Use the quotemeta operator to escape them, and they'll retain their literal meaning.
$line =~ s/\Q$var//;
As in:
#!/usr/bin/perl -wT use strict; my $var = 'apple (banana) cherry'; my $line = 'apple (banana) cherry kiwi lemon melon'; $line =~ s/\Q$var//; print "$line\n"; =output kiwi lemon melon

-Blake