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

Re: @_ Suppression

Thread Previous | Thread Next
Paul "LeoNerd" Evans
December 4, 2019 17:49
Re: @_ Suppression
Message ID:
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

I think it's implemented by:

Paul "LeoNerd" Evans      |  |

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