in reply to Re: Trouble grepping values when hash contains multiple values per key
in thread Trouble grepping values when hash contains multiple values per key
I see the problem now
I'm expecting grep to return true or false, but since this is a list context it will return the actual values. Is there any way to force grep to evaluate these in a scalar context in order to return a "true" or "false" in this case?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Trouble grepping values when hash contains multiple values per key
by chromatic (Archbishop) on Jun 05, 2010 at 19:47 UTC | |
by eyepopslikeamosquito (Archbishop) on Jun 06, 2010 at 03:13 UTC | |
Re^3: Trouble grepping values when hash contains multiple values per key
by toolic (Bishop) on Jun 05, 2010 at 17:38 UTC | |
Re^3: Trouble grepping values when hash contains multiple values per key
by dirtdog (Monk) on Jun 05, 2010 at 17:39 UTC |
In Section
Seekers of Perl Wisdom