Re: Perl and WindowsNT

2001-05-09 Thread Joe Yates
At 12:42 PM 08-05-01 -0400, Carl Rogers wrote: >Sorry if this is a dumb question.. (I know, there is no such thing as a >dumb question- only questions asked by dumb people:) > >I used the opendir() function in my Perl script to point to a folder with >200+ text files for the purpose of extractin

RE: Perl and WindowsNT

2001-05-08 Thread King, Jason
Carl Rogers writes .. >I used the opendir() function in my Perl script to point to a folder >with 200+ text files for the purpose of extracting data from each file. > >If I run the script with opendir/readdir pointing to a directory on a >shared drive, I'll get to a point where Perl tells me "Can

Re: Perl and WindowsNT

2001-05-08 Thread Mike Lacey
Carl, Have you tried to use the globbing function rather than readdir? my $file; while(<*.txt>){ $file=$_; # not strictly needed, I know, but makes it clear open(F,$file) || die "with a nice error message\n$!\n"; while(){ # do something useful with the file }