Re: "Did not find leading dereferencer" - new findings to an old puzzle
- From: "Ronny" <ro.naldfi.scher@xxxxxxxxx>
- Date: 10 Nov 2006 02:23:41 -0800
Ben Morrow schrieb:
Quoth "Ronny" <ro.naldfi.scher@xxxxxxxxx>:
Ben Morrow schrieb:
Quoth "Ronny" <ro.naldfi.scher@xxxxxxxxx>:
Ferry Bolhar schrieb:
"Did not find leading dereferencer":This doesn't make any sense. First, I don't include in my programs any
"extract_variable" was expecting one of '$', '@', or '%' at the
start of a variable, but didn't find any of them.
Text:: stuff. Second, this would not explain why the error message
changes to the real one, if, say, I remove one comment line from the
source code.
Are you by any chance using any modules that set up source filters?
Switch.pm, perhaps? These often use Text::Balanced to do their work, and
it isn't quite as good at parsing Perl as it might be.
Indeed I do have a
use Switch 'Perl6';
in this module. Good point.
Hmmm. You presumably don't want to rewrite your code not to use Switch;
that would be my recommendation.
Actually, *this* is the least problem. The use Switch was in the code
only for
historic reason, and I have removed it. I don't know of course if
*this* was sufficient
to make the error go away: After all, the removal of the statement made
the code
a little bit smaller, so the problem might simply have disappeared for
*this* reason
(removing a comment line instead of the use Switch would have had the
same
effect). Since the code is still being changed a lot, I think I will
see during the
following weeks whether the removal of the Switch module will remedy
the situation.
As usual, if you reduce your script to the *minimal* example which
reproduces the problem (yes, in this case this might be a lot of work),
and post it here, I'm sure someone can tell you what's going on.
The problem with errors which occur only in "sufficiently big" source
files is that the minimal example is still fairly big. In my case, I
have reduced it to the extent that deleting one single character (for
example, the "#" in front of an empty comment line) already makes this
error go away. Still, the source file is around 350 lines big.
If the error really only occurs with large source files, then the
obvious workaround is to split your module into two.
This certainly is, although I it surprised me that 350 lines - quite a
few of them
being comments - is already too large to be handled in a single module.
Think
of the cases where you document a module using perlpod - in this case,
the
POD documentation alone can easily approach 350 lines. What do you
think?
Ronald
.
- Follow-Ups:
- Re: "Did not find leading dereferencer" - new findings to an old puzzle
- From: Peter J. Holzer
- Re: "Did not find leading dereferencer" - new findings to an old puzzle
- References:
- Re: "Did not find leading dereferencer" - new findings to an old puzzle
- From: Ronny
- Re: "Did not find leading dereferencer" - new findings to an old puzzle
- From: Ben Morrow
- Re: "Did not find leading dereferencer" - new findings to an old puzzle
- From: Ronny
- Re: "Did not find leading dereferencer" - new findings to an old puzzle
- From: Ben Morrow
- Re: "Did not find leading dereferencer" - new findings to an old puzzle
- Prev by Date: Re: Generate HTML from a Windows Network Share
- Next by Date: Re: PERL can't open file for logging (world writable directory Windows XP Home/ Active Perl / Apache)
- Previous by thread: Re: "Did not find leading dereferencer" - new findings to an old puzzle
- Next by thread: Re: "Did not find leading dereferencer" - new findings to an old puzzle
- Index(es):
Relevant Pages
|