in reply to readdir return nul string
chdir $directory; opendir DIR, "." || die "Cannot open $directory directory\n"; # Look for csv filenames... my @csvFiles; while (my $file = readdir DIR ) { if ( $file =~ /.csv$/i ) { chomp($file); push @csvFiles, $file; } # End of if csv file } # End of While closedir DIR;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: readdir return nul string
by Fletch (Bishop) on Sep 26, 2007 at 13:00 UTC | |
by Aim9b (Monk) on Sep 26, 2007 at 18:50 UTC | |
by Fletch (Bishop) on Sep 26, 2007 at 19:32 UTC | |
by Aim9b (Monk) on Sep 27, 2007 at 21:50 UTC |