At 11:38 AM 05/03/00, Scott K Purcell wrote:
>Hello,
>I have been using the next line grep for quite some time, to delete files 
>from a directory, and not delete the system dot files (or whatever they 
>are).
>my @allfiles = grep !/^\.\.?$/, @allfiles;
>That works well.
>
>Can I use the same grep philosophy to skip two files?
>eg.
>@allfiles = grep !/[fish|apple]/, @allfiles; # does not work. Does not give 
>an error, but leaves nothing in @allfiles.

Try parentheses:
@allfiles = grep !/(fish|apple)/, @allfiles;

>
>Is anyone out there familiar with grep enough to help me? Thanks
>Scott
>
>---
>You are currently subscribed to perl-win32-users as: [EMAIL PROTECTED]
>To unsubscribe, forward this message to
>         [EMAIL PROTECTED]
>For non-automated Mailing List support, send email to  
>         [EMAIL PROTECTED]
>
>

---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
         [EMAIL PROTECTED]
For non-automated Mailing List support, send email to  
         [EMAIL PROTECTED]

Reply via email to