Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
How to grep on a scalar value,the following grep is yieldin a value of zero?
$folder_present = grep (/^\Q$folder\E$/i, $mk); print $folder_present #prints zero
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Grep failing
by davido (Cardinal) on Mar 21, 2011 at 07:28 UTC | |
|
Re: Grep failing
by wind (Priest) on Mar 21, 2011 at 16:25 UTC | |
by Anonymous Monk on Mar 21, 2011 at 23:55 UTC | |
by wind (Priest) on Mar 22, 2011 at 01:13 UTC | |
|
Re: Grep failing
by Anonymous Monk on Mar 21, 2011 at 16:40 UTC |