Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 rifling through the Monastery: (6)
As of 2014-12-26 21:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (176 votes), past polls