On Sep 27, 8:37 am, [EMAIL PROTECTED] (John W. Krahn) wrote:
> > If i run this script i am getting the error as  "Invalid top directory
> > at d:\perl\lib\file\find.pm line 562, <DATA> line164"
>
> This script doesn't have 562 lines and nowhere are you using a DATA filehandle
> so it is hard to say why the error message is appearing.

John, the error message is happening File::Find's line 562, not the
OP's script's line 562.  Looks like File::Find is die()ing where it
should be croak()ing, personally.

Basically the OP passed a list of top directories that contained one
or more undefs, probably because of the way he built @d using an if
statement inside the loop.

Paul Lalli


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to