develooper Front page | perl.perl5.porters | Postings from September 2000

[ID 20000915.008] Bug in Diagnostics?

Thread Next
Rani Pinchuk
September 15, 2000 07:27
[ID 20000915.008] Bug in Diagnostics?
Message ID:
Hello all,

The link didn't work for us (we got 404), 
so we are sorry if we write to the wrong place. 

Koen Bossaert - a colleague of mine - wrote something and after solving 
and cleaning away the rest of the correct code, we could get only the 

The file looks like:

  use diagnostics;
  use Caller;

The file looks like:

  package Caller;

  use Bug;


The file looks like

  package Bug;
  use strict;

  sub cause {
      my $vars;
      if (1) {
          $vars->{node_name} = $vars->{nodes[$vars->{i}]}->node_name;


As might see, the long line of should be:

          $vars->{node_name} = $vars->{nodes}[$vars->{i}]->node_name;

The problem was that when we run it we get only:

  Goto undefined subroutine &Carp::longmess_heavy at 
/usr/lib/perl5/5.6.0/ line 98.

Nothing else! If we skip the Caller (so uses Bug directly) we get:
  syntax error at line 7, near "nodes["
  BEGIN failed--compilation aborted at ./ line 5 (#1)
  Goto undefined subroutine &Carp::longmess_heavy at 
/usr/lib/perl5/5.6.0/ line 98.

Here we get some hint about what is our bug. 

Is this a bug in diagnostics? Is this bug already known?



Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About