> 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"?)
Why do you think you can't do this? The command is all right and there is not reason why would grep() work differently under Unix and Windows. Jenda =========== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ========== There is a reason for living. There must be. I've seen it somewhere. It's just that in the mess on my table ... and in my brain I can't find it. --- me -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]