in reply to if statement/uninitialized value
then either $info or $query are uninitializedif ((-e $info) and ($query =~ /support/))
On the other problem:
is probably not what you would want: $query ne /support/ means:if ((-e $info) and ($query ne /support/))
1. match $_ with /support/ 2. compare the result (which will be true or false) as a string with $query...
You might take a look at
perldoc perlre perldoc perlop (look at the section on m// )
-- Joost downtime n. The period during which a system is error-free and immune from user input.
|
|---|