Readdir

2001-12-21 Thread angelo . bettati
Thanks a lot for Your Help during these months (especially for Your good solutions to my problems). Best wishes for Merry Christmas and Happy New Year !! Bye Angelo -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Readdir

2001-12-18 Thread fliptop
um_files = -1; > > print $q->header("text/html"); > > local *DIR; > opendir (DIR, $dir); > $num = $num_files++ while readdir (DIR); > closedir DIR; > print $num; does glob() work on windoze? ie.- my @files = glob('c:\...\temp\*.*'); print "number

Re: Readdir

2001-12-18 Thread Curtis Poe
--- [EMAIL PROTECTED] wrote: > Hi to All, > I' d like to know if it' s possible to count the exact number of files > inside a certain directory, using a way better than this: perl -e 'opendir D,".";$count=grep{-f}readdir D;print $count' That break

Readdir

2001-12-18 Thread angelo . bettati
ir (DIR, $dir); $num = $num_files++ while readdir (DIR); closedir DIR; print $num; I' ve used "grep -f " without results. Thanks in advance for Your Help !! Bye Angelo -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]