Wrong line number in error message
Bug #57061 reported by
Nikolaus Rath
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
perl (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
nokile:~/Work$ ./bug.pl
Can't call method "type" on unblessed reference at ./bug.pl line 18.
but the error is in line 27.
Changed in perl: | |
status: | Unconfirmed → Confirmed |
To post a comment you must log in.
On Mon, Aug 21, 2006 at 08:22:37AM -0000, Nikolaus Rath wrote: answer( /home/nikratio/ Projekte/ Archiver/ Archiver. pm:314) : /home/nikratio/ bin/aadd: 94): Projekte/ Archiver/ Archiver. pm line 314, <STDIN> line 10.
> Public bug reported:
>
> DB<1> s
> main::valid_
> 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::(
> 94: if($@) {
> DB<3> x $@
> 0 'Can\'t call method "type" on unblessed reference at /home/nikratio/
> '
> DB<4>
>
> ** Affects: perl (Ubuntu)
> Importance: Untriaged
> Status: Unconfirmed
>
> --
> $p->{"type"} tries to call a method named type
My guess would be that somewhere in the object hierarchy, something has
an AUTOLOAD defined. This is the expected behavior in that case.
Steve Peters
<email address hidden>