Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

undef/defined &{$name} while "strict refs"

by anazawa (Scribe)
on Aug 21, 2012 at 01:42 UTC ( #988541=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # cat.pl
    use strict;
    ...
    my $walkable = defined &{ 'walk' };
    undef &{ 'walk' };
    &{ 'run' };
    
  2. or download this
    $ perl cat.pl
    Can't use string ("run") as a subroutine ref while "strict refs" in us
    +e at cat.pl line 9.
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2015-07-05 05:49 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 (60 votes), past polls