if (grep /($FORM{user}|$FORM{pin})/i, "/export/install/users.txt") {
What do you expect grep to do here? grep does not read files, it just processes arrays (even those that contain only one string, like "/export/install/users.txt").
(OK, maybe you want that $FORM{user} or $FORM{pin} contain a regular expression that matches the string "/export/install/users.txt", but I doubt that.)
Alexander
In reply to Re: perl if statement
by afoken
in thread perl if statement
by Drsin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |