in reply to Adding Files in a directory to an array

The problem with globs (that cd32/*.cd thingy) is, that you can't use them in variables.

You can use opendir/readdir/closedir to scan a directory.
If you have to traverse down into subdirectories use File::Find.

  • Comment on Re: Adding Files in a directory to an array

Replies are listed 'Best First'.
Re: Re: Adding Files in a directory to an array
by Gerard (Pilgrim) on Oct 09, 2001 at 15:29 UTC
    Thanks all for your great advice.