Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

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?

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2016-10-22 14:30 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (294 votes). Check out past polls.