A Taylor wrote:
> Hi all,
> I am trying to read all the files in a certain directory. I can open a
> directory using:
>
> opendir(DIR, $some_dir) || die "can't opendir $some_dir: $!";
while (my $file = readdir (DIR)) {
#Do your stuff, readdir returns only the filenames
#you will have to prefix $some_dir to $file before
#accessing them, perldoc -f readdir
}
>
> ......
> closedir DIR;
>
> but how do I scan through all the files in that directory????
>
> Thanks for your help
>
> Anadi
>
> _________________________________________________________________
> MSN Photos is the easiest way to share and print your photos:
> http://photos.msn.com/support/worldwide.aspx
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]