Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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

by LanX (Saint)
on Apr 25, 2018 at 23:13 UTC ( [id://1213561]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1213561]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-25 07:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found