in reply to Re: Disabling runtime warnings in dynamic scope? (no warnings 'exiting'; use warnings 'exiting';
in thread Disabling runtime warnings in dynamic scope?

But how?

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Wikisyntax for the Monastery

  • Comment on Re^2: Disabling runtime warnings in dynamic scope? (no warnings 'exiting'; use warnings 'exiting';

Replies are listed 'Best First'.
Re^3: Disabling runtime warnings in dynamic scope? (Scope::Context)
by beech (Parson) on Apr 25, 2018 at 23:16 UTC
      > Scope::Context

      Thanks, interesting! :)

      Seems to be based on Scope::Upper and does loads of black magic. (And might be useful to implement lisp style macros)

      But only on upper contexts. The subs in questions are "lower" contexts

      Cheers Rolf
      (addicted to the Perl Programming Language and ☆☆☆☆ :)
      Wikisyntax for the Monastery

        Magicky indeed, another one

        Code::Splice - Injects the contents of one subroutine at a specified point elsewhere.

        based on B::Generate - Create your own op trees.

      I'm pretty sure PadWalker can't access global special vars inside a foreign sub.

      And manipulating the warn handler looks cleaner now (though I have to check caller(2) too)

      Cheers Rolf
      (addicted to the Perl Programming Language and ☆☆☆☆ :)
      Wikisyntax for the Monastery