I am not talking about grep, but for your purpose, will
@list = `dir somedir\\*.tiff /b/s`; # giving what you want ?
Rgds,
Connie
----- Original Message -----
From: "Rupert Heesom" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 10, 2002 10:10 PM
Subject: Using grep with Win32 perl?
> Can I assume that it's not possible to use grep in a Win32 perl script?
>
> I'm trying to filter the files that READDIR reads in from a directory. I
> need to get one list of of TIFF files, and another list of all PDF files
in
> a particular directory.
>
> A textbook example of what I'm trying to do is -
>
> @allfiles = grep {$_ ne '.' and $_ ne '..' } readdir THISDIR;
>
> This is where grep comes in, but I assume I can't use this idea for my own
> script.
>
> How else can I do the same thing? (filtering the output of "readdir"?)
>
> Regs
> Rupert Heesom
> Asst Distribution Engineer
> Adventist World Radio
>
>
>
----------------------------------------------------------------------------
----
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]