On Nov 22, Tanton Gibbs said:
>@temp_str = grep { $_ !~ /HOLD/ }, @temp_str;
>@temp_str = grep { !/HOLD/ }, @temp_str;
No comma after the block.
grep BLOCK LIST
or
grep EXPR, LIST
--
Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/
RPI Acacia brother #734 ht
I think you want
@temp_str = grep { $_ !~ /HOLD/ }, @temp_str;
or
@temp_str = grep { !/HOLD/ }, @temp_str;
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 22, 2002 1:02 PM
Subject: avoid grepping a string
> Hi,
>
> In one of my scripts I