Re: Invalid top directory at d:\perl\lib\file\find.pm line 562
- From: mritty@xxxxxxxxx (Paul Lalli)
- Date: Thu, 27 Sep 2007 05:58:38 -0700
On Sep 27, 8:37 am, kra...@xxxxxxxxx (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
.
- References:
- Invalid top directory at d:\perl\lib\file\find.pm line 562
- From: Perler
- Re: Invalid top directory at d:\perl\lib\file\find.pm line 562
- From: John W. Krahn
- Invalid top directory at d:\perl\lib\file\find.pm line 562
- Prev by Date: Problem with repeating characters in regex
- Next by Date: Re: $File::Find and no_chdir
- Previous by thread: Re: Invalid top directory at d:\perl\lib\file\find.pm line 562
- Next by thread: Invalid top directory at d:\perl\lib\file\find.pm line 562
- Index(es):
Relevant Pages
|