Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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

by anazawa (Beadle)
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 romping around the Monastery: (7)
As of 2014-07-12 12:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (239 votes), past polls