in reply to if statement/uninitialized value
Here the output will be "$var not defined" because $var hasn't been assigned a value yet so it defaults to undef when evaluated.my $var; print "\$var not defined" unless defined $var;
Concerning your last problem
The ne operator will compare two *strings*. So what is happening there is something like thisif ((-e $info) and ($query ne /support/))
Which is not what you want, so you should probably change the ne to a negated regex match (which is !~).if ((-e $info) and ($query ne ($_ =~ /support/)))
_________
broquaint
|
|---|