Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Redefining Imported Subs: of scope and no

by temporal (Pilgrim)
on Feb 08, 2013 at 22:59 UTC ( #1017898=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use feature 'say';
    unless ($verbose) {
    ...
            #say 'this goes unsayable';
    }
    say 'said';
    
  2. or download this
    use feature 'say';
    undef &say;
    ...
    sub not_say {
        print 'not saying';
    }
    
  3. or download this
    use feature 'say';
    use Sub::Delete;
    delete_sub 'say';
    say 'testing';
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1017898]
Approved by davido
Front-paged by BrowserUk
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (16)
As of 2015-07-28 16:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (258 votes), past polls