I would guess that every file in the directory has at least one of the
following letters in it
fish|apple
That is what your regular expression says.
Perhaps you wanted...
!/^(fish|apple)$/
> Behalf Of Scott K Purcell
>
>
> 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.
>
> Is anyone out there familiar with grep enough to help me? Thanks
> Scott
>
---
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]