SPUG: Where is grep's return value?
Asim Jalis
asimjalis at acm.org
Tue Sep 10 18:19:46 CDT 2002
On Tue, Sep 10, 2002 at 07:18:35PM -0400, Asim Jalis wrote:
> The first argument to grep seems wrong. If $KEY contains a
> regular expression pattern you should use grep(/$KEY, @EXISTING).
That should be grep(/$KEY/, @EXISTING).
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
POST TO: spug-list at pm.org PROBLEMS: owner-spug-list at pm.org
Subscriptions; Email to majordomo at pm.org: ACTION LIST EMAIL
Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
For daily traffic, use spug-list for LIST ; for weekly, spug-list-digest
Seattle Perl Users Group (SPUG) Home Page: http://seattleperl.org
More information about the spug-list
mailing list