in reply to perl if statement
evaluates to true? This is very unlikely.if (grep /($FORM{user}|$FORM{pin})/i, "/export/install/users.txt") {
Take a look at what the grep function does, it is not what you apparently think. In Perl, grep is used to filter the elements of an array.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: perl if statement
by Drsin (Novice) on Feb 29, 2016 at 20:06 UTC | |
by Laurent_R (Canon) on Feb 29, 2016 at 20:54 UTC | |
by Drsin (Novice) on Mar 01, 2016 at 14:06 UTC | |
by poj (Abbot) on Mar 01, 2016 at 14:19 UTC | |
by Anonymous Monk on Mar 01, 2016 at 14:25 UTC | |
by FreeBeerReekingMonk (Deacon) on Feb 29, 2016 at 22:01 UTC |