in reply to Interesting: a genuine Perl-bug
Unfortunately, this is at $WORK, so I can’t easily try other versions.
In my code, the error-message was reported on a line ... other than the my $state; declaration ... where the offending variable did appear, just not the place where (it did!) occur as a bareword. Hence, the code looked more like this:
my $state = 0; ... $state = 1; #<--- BAREWORD REPORTED HERE ... $state = 4; ... state = 5; #<--- BUT THE BAREWORD IS ACTUALLY HERE
The message line-number was not simply “off by some random amount.” The variable did indeed occur as a bareword, elsewhere in the program. The message simply cited the wrong line.
Replies are listed 'Best First'. | |
---|---|
Re^2: Interesting: a genuine Perl-bug
by toolic (Bishop) on Sep 22, 2010 at 14:05 UTC | |
Re^2: Interesting: a genuine Perl-bug (case)
by tye (Sage) on Sep 22, 2010 at 14:00 UTC |