in reply to Grep expansion problem
Is there a specific reason for doing an exact match via regex when an equality check would suffice?
This would be faster and would not be vulnerable to metacharacter interpolation.if ( grep $_ eq $x, @b ) { ... }
Ivan Heffner
Sr. Software Engineer, DAS Lead
WhitePages.com, Inc.
Sr. Software Engineer, DAS Lead
WhitePages.com, Inc.
In Section
Seekers of Perl Wisdom