develooper Front page | perl.perl5.porters | Postings from May 2019

[perl #134124] Clarify doc for @{ "::_<$filename" } and @{"_<$filename" } at perldebguts

Thread Previous
From:
KES
Date:
May 22, 2019 18:14
Subject:
[perl #134124] Clarify doc for @{ "::_<$filename" } and @{"_<$filename" } at perldebguts
Message ID:
rt-4.0.24-29088-1558548888-141.134124-75-0@perl.org
# New Ticket Created by  KES 
# Please include the string:  [perl #134124]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=134124 >


Hello,

the [doc](https://perldoc.perl.org/perldebguts.html) have:



Each array @{"_<$filename"} holds the lines of $filename for a file compiled by Perl. The same is also true for evaled strings that contain subroutines, or which are currently being executed. The $filename for evaled strings looks like (eval 34) .

Values in this array are magical in numeric context: they compare equal to zero only if the line is not breakable.

Each hash %{"_<$filename"} contains breakpoints and actions keyed by line number. Individual entries (as opposed to the whole hash) are settable. Perl only cares about Boolean true here, although the values used by perl5db.pl have the form "$break_condition\0$action" .

The same holds for evaluated strings that contain subroutines, or which are currently being executed. The $filename for evaled strings looks like (eval 34) .


and



@DB::dbline is an alias for @{"::_<current_file"} , which holds the lines of the currently-selected file (compiled by Perl), either explicitly chosen with the debugger's f command, or implicitly by flow of execution.

Values in this array are magical in numeric context: they compare equal to zero only if the line is not breakable.

%DB::dbline is an alias for %{"::_<current_file"} , which contains breakpoints and actions keyed by line number in the currently-selected file, either explicitly chosen with the debugger's f command, or implicitly by flow of execution.


I am ambiguous which one is correct debugger internal variable to use:
this `::_<`  or this `_<`?


Also perl have ${"::_<$filename"} variable which is filled by toke.c
But I did not find any documentation for it.


please clarify

-- 
Best regards,
Eugen Konkov


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About