On Wednesday, 23 February 2022, 14:03:47 CET, Leon Timmermans <fawaka@gmail.com> wrote: > > It would be nice to be able to do something like: > > > > if ( $ENV{PERL_DEBUGGER_RUNNING} ) { > > ... > > } > > You can check if $^P is not 0? I never knew about that particular variable. If it's stable and guaranteed (I would assume yes to both), it would be nice to add that to the perldebug POD (at least on v5.26 I don't see it in there). If that's considered the best canonical approach, I'm happy to submit a PR. Best, Ovid -- IT consulting, training, specializing in Perl, databases, and agile development http://www.allaroundtheworld.fr/. Buy my book! - http://bit.ly/beginning_perlThread Previous | Thread Next