Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Redefining Imported Subs: of scope and no

by temporal (Pilgrim)
on Feb 08, 2013 at 22:59 UTC ( [id://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
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2024-04-23 20:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found