in reply to Help with warnings!!!

What do you think you're accomplishing with:
if($1, $2, $3, $4) {
? I think you probably mean either:
if($1 or $2 or $3 or $4) { # any of $1..$4 is not empty
or:
if($1 and $2 and $3 and $4) { # all of $1..$4 are not empty

Liz