dragonchild has asked for the wisdom of the Perl Monks concerning the following question:

Has anyone ever run into this?? <code> scorpion:/export/home/kinyonro-> dprofpp -g 'SmartReference::load' Modification of non-creatable array value attempted, subscript -1 at /usr/local/bin/dprofpp line 584, <fh> line 335. <code>

------
We are the carpenters and bricklayers of the Information Age.

Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.

Replies are listed 'Best First'.
Re: Bug with dprofpp?
by grinder (Bishop) on Oct 17, 2001 at 00:53 UTC

    Yes I have. The program is doing something like this:

    perl -e '$arr[-1] = "foo"'

    update: but see tye's clarification below.

    Of course, the question as to why dprofpp is doing that is a very good question indeed. It's not something I have encountered before. Is the tmon.out file tremendously big, or is there something out of the ordinary going on? update to dragonchild's follow-up, tremendously huge is approximately equal to 2Gb. 15Mb tmon.out are pretty standard (at least AFAIAC).

    I remember you saying a few hours ago in the CB that Devel::DProf wanted a perl binary with -DDEBUGGING. In my experience this is not necessary, so I would tend to suspect that your installation is a bit whacked.

    --
    g r i n d e r

      Just to clarify... $arr[-1]= only gives the noted error if @arr is empty. $arr[-2]= gives a similar error if @arr has fewer than 2 elements, etc.

              - tye (but my friends call me "Tye")
      Yes, my tmon.out file is rather huge, on the order of 15M. But, I would think that this shouldn't be an issue ... should it?

      ------
      We are the carpenters and bricklayers of the Information Age.

      Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.