in reply to Scanning a directory's files for readability

One problem I can see is that you need to prepend the directory to each file. readdir returns just the filename and not the complete path.

$text->analyse_file("./new_text/$file");

Replies are listed 'Best First'.
Re^2: Scanning a directory's files for readability
by Phoebus2000 (Initiate) on Jan 19, 2014 at 12:14 UTC
    Thank you monks for your swift revelation of wisdom. I ended up using Cristoforo's solution and it worked.