An array in a scalar context returns the number of elements.
If the array is empty, "if (@found)" sees undef or zero , which is FALSE in perl.
If the array has values, "if(@found)" sees a non-zero value, which is TRUE in perl.
My goal ... to kill off the slow brain cells that are holding me back from synergizing my knowledge of vertically integrated mobile platforms in local cloud-based content management system datafication.
In reply to Re^3: IF and GREP Question
by NetWallah
in thread IF and GREP Question
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |