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

Re: @_ Suppression

From:
Paul "LeoNerd" Evans
Date:
December 4, 2019 17:49
Subject:
Re: @_ Suppression
Message ID:
20191204174904.40003a69@shy.leonerd.org.uk
Another thought: If `@_` is not generated, how do modules like
Carp::Always inspect the args of all of the callstack? Currently those
look at (I believe) @DB::args though the exact logic confuses me. Will
that remain working here?


$ perl -MCarp::Always -E 'sub A { B(123); } sub B { C(456); } sub C {
die 789; } A' 789 at -e line 1.
        main::C(456) called at -e line 1
        main::B(123) called at -e line 1
        main::A() called at -e line 1

https://metacpan.org/pod/Carp::Always

I think it's implemented by:

  https://metacpan.org/release/Carp/source/lib/Carp.pm#L329-391

-- 
Paul "LeoNerd" Evans

leonerd@leonerd.org.uk      |  https://metacpan.org/author/PEVANS
http://www.leonerd.org.uk/  |  https://www.tindie.com/stores/leonerd/



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