Re: question about # of files in a directory

2005-09-30 Thread Jeff 'japhy' Pinyan
On Sep 28, ZHAO, BING said: Is there a way to call or maybe get the # of files in a directory? The simplest way is to use opendir() and readdir(). opendir my($dh), $path or die "can't opendir $path: $!"; my @files = readdir $dh; closedir $dh; Now you have the files from the

Re: question about # of files in a directory

2005-09-28 Thread Wiggins d'Anconia
ZHAO, BING wrote: > Hi, > first, I want to thank all who viewed my first question days > before, especially to those who took time to answer it. It was > trenmendous encouragement for a beginner perlee like me. Thanks again. > My question: > Is there a way to ca

question about # of files in a directory

2005-09-28 Thread ZHAO, BING
Hi, first, I want to thank all who viewed my first question days before, especially to those who took time to answer it. It was trenmendous encouragement for a beginner perlee like me. Thanks again. My question: Is there a way to call or maybe get the # of f