Good morning,

> So I have modified my script a bit and it works. However, now 
> I want to not 
> read in the "." and ".." directories. How can I do this?? I am having 
> problems with this part.

I usually use the following code to do this:

opendir DIR,'$mydir'
  or die "couldn't open dir [$mydir]: $!\n\n";
# grep file listing
my @fl = grep { $_ ne '.' and $_ ne '..' }, readdir DIR;
closedir DIR;

Cheers,

 -dave



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to