in reply to perl if statement
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: perl if statement
by Drsin (Novice) on Feb 29, 2016 at 19:25 UTC | |
by poj (Abbot) on Feb 29, 2016 at 19:58 UTC |