Re: Filtering output of readdir

2007-10-18 Thread Paul Lalli
On Oct 18, 4:53 pm, [EMAIL PROTECTED] (Chas. Owens) wrote: > Also, don't use > dirhandles if you are just going to use readdir in list context. > dirhandles are for iterative reading. Use a glob to get a list: First time I've ever heard that piece of advice. Can't understand why you'd give it.

RE: Filtering output of readdir

2007-10-18 Thread Joseph L. Casale
Thanks Chas and Tom, its working great. jlc -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

RE: Filtering output of readdir

2007-10-18 Thread Joseph L. Casale
ts. Thanks! jlc -Original Message- From: Chas. Owens [mailto:[EMAIL PROTECTED] Sent: October-18-07 2:53 PM To: Joseph L. Casale Cc: beginners@perl.org Subject: Re: Filtering output of readdir On 10/18/07, Joseph L. Casale <[EMAIL PROTECTED]> wrote: > Hi All, > > I am needi

Re: Filtering output of readdir

2007-10-18 Thread Chas. Owens
On 10/18/07, Joseph L. Casale <[EMAIL PROTECTED]> wrote: > Hi All, > > I am needing to perform some work on files located in a directory. I am > reading > the contents of the directory in and but need to filter what's read in. So > far I > can filter out the "." and ".." but I need to add two mor

Re: Filtering output of readdir

2007-10-18 Thread Tom Phoenix
On 10/18/07, Joseph L. Casale <[EMAIL PROTECTED]> wrote: > I am needing to perform some work on files located in a directory. I am > reading > the contents of the directory in and but need to filter what's read in. So > far I can > filter out the "." and ".." but I need to add two more cases. I

Filtering output of readdir

2007-10-18 Thread Joseph L. Casale
Hi All, I am needing to perform some work on files located in a directory. I am reading the contents of the directory in and but need to filter what's read in. So far I can filter out the "." and ".." but I need to add two more cases. I need to make sure none of the entries in the array are dir