I'd guess that $ag is " " (or something like that -- a string of blanks). That non-empty value will evaluate to true, but will be - surprise - blank.
Something like
ought to have useful effects by stripping out the blanks in $ag before you test it.$ag =~ s/\s+//; if ($ag) . . .
In reply to Re: If Problem!!!
by herveus
in thread If Problem!!!
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |