http://qs321.pair.com?node_id=1225932


in reply to Re^8: B::Xref buggy?
in thread B::Xref buggy?

Exactly. Only in that scenario will Concise give a line number for it. And as it turns out, Concise and Xref will give the same line number in that scenario.

Replies are listed 'Best First'.
Re^10: B::Xref buggy?
by LanX (Saint) on Nov 17, 2018 at 01:46 UTC
    > Concise and Xref will give the same line number in that scenario.

    Not at the moment. As it turned out Xref is buggy.

    see here again.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

      Yes, at the moment. I don't know why you link to that post because Concise doesn't give a number for the my, and Xref doesn't give a line number for the while.

        > give the same number

        "would give" the same number if Xref was ever fixed.

        edit

        To be clear: line numbers in Perl will never be 100% exact, because statements can span several lines, and because sometimes multiple statements are optimized into a single one.

        But there is no reason (AFAIK) why a variable should be skipped from a report or the declaration being reported after the first use, like Xref is doing now.

        Cheers Rolf
        (addicted to the Perl Programming Language :)
        Wikisyntax for the Monastery FootballPerl is like chess, only without the dice