on Wed, 25 Sep 2002 10:13:45 GMT, [EMAIL PROTECTED] (Adriano
Allora) wrote: 

> Hi to all,
> I need a script to open all the files in a directory and count all
> the words of them, but it doesn't work:

> $folder = "pathname";
> opendir(KART, $folder);
> foreach (readdir(KART)){
>      if(grep /\.txt$/, $_){
> $filename = "$_";


Try
    $filename = "$folder/$_";

-- 
felix

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to