On Tue, Sep 05, 2006 at 06:44:30PM -0000, Nikolaus Rath wrote:
> 
> ** Summary changed:
> 
> - $p->{"type"} tries to call a method named type
> + Wrong line number in error message
> 
> ** Description changed:
> 
> -   DB<1> s
> - main::valid_answer(/home/nikratio/Projekte/Archiver/Archiver.pm:314):
> - 314:        if($p->{"type"} eq "string") {
> -   DB<1> x $p
> - 0  HASH(0x892a01c)
> -    'default' => 'never'
> -    'emptyok' => 1
> -    'query' => 'Expiration date'
> -    'type' => 'timeoff'
> -   DB<2> x $p->{"type"}
> - 0  'timeoff'
> -   DB<3> s
> - main::(/home/nikratio/bin/aadd:94):
> - 94:     if($@) {
> -   DB<3> x $@
> - 0  'Can\'t call method "type" on unblessed reference at 
> /home/nikratio/Projekte/Archiver/Archiver.pm line 314, <STDIN> line 10.
> - '
> -   DB<4>
> + nokile:~/Work$ ./bug.pl
> + Can't call method "type" on unblessed reference at ./bug.pl line 18.
> + 
> + but the error is in line 27.
> 
> ** Attachment added: "testcase"
>    http://librarian.launchpad.net/4136476/bug.pl
> 

Unfortunately, I don't believe this bug will ever be fixed.  The problem
is how Perl code is represented internally by the perl executable.  This
is because the optree does not contain line number information on the 
elsif lines.  It is not a trivial problem and would like cause 
performance to suffer it is fixed.  See the Perl bug queue for more
information on this problem at 
<http://rt.perl.org/rt3/Ticket/Display.html?id=37302>.

Steve Peters
[EMAIL PROTECTED]

-- 
Wrong line number in error message
https://launchpad.net/bugs/57061

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to