I'm trying to get all files of a directory whose name does not end with a 
particular string.

I'm tried using:
@files = readdir DIR;
@otherfiles = grep /(?!java)/, @files;

but files with java in them are returned along with the other files.

I'd like to know, in general, how to get everything that doesn't match a 
given pattern.


thanks,
[EMAIL PROTECTED]

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to