RE: How to get a dir file list sans sub-dir names.

2003-02-13 Thread Wagner, David --- Senior Programmer Analyst --- WGO
John W. Krahn wrote: > Gan Uesli Starling wrote: >> >> Am wanting to get a list of files in a directory, but only >> files which are not themselves further sub-directories. >> >> When I do this... >> >> opendir(DIR, $this_path) or die "Can't opendir $this_path: $!"; > > You are opening the

Re: How to get a dir file list sans sub-dir names.

2003-02-13 Thread Felix Geerinckx
on Thu, 13 Feb 2003 00:21:03 GMT, [EMAIL PROTECTED] (Gan Uesli Starling) wrote: > Am wanting to get a list of files in a directory, but only > files which are not themselves further sub-directories. > > When I do this... > >opendir(DIR, $this_path) or die "Can't opendir $this_path: $!"

Re: How to get a dir file list sans sub-dir names.

2003-02-12 Thread John W. Krahn
Gan Uesli Starling wrote: > > Am wanting to get a list of files in a directory, but only > files which are not themselves further sub-directories. > > When I do this... > > opendir(DIR, $this_path) or die "Can't opendir $this_path: $!"; You are opening the directory with opendir() but you a

How to get a dir file list sans sub-dir names.

2003-02-12 Thread Gan Uesli Starling
Am wanting to get a list of files in a directory, but only files which are not themselves further sub-directories. When I do this... opendir(DIR, $this_path) or die "Can't opendir $this_path: $!"; @file_list = glob("*"); closedir(DIR); ...it gives all the files, including the files whi