Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^9: undef/defined &{$name} while "strict refs"

by anazawa (Beadle)
on Aug 21, 2012 at 10:08 UTC ( #988681=note: print w/ replies, xml ) Need Help??


in reply to Re^8: undef/defined &{$name} while "strict refs"
in thread undef/defined &{$name} while "strict refs"

Athanasius clarified what I wanted to say. Thanks a lot :) By the way, the following is equivalent to the code in question:

no strict 'refs'; my $walkable = defined *{ 'walk' }{CODE};
In this case, "no strict refs" is required and it seems reasonable. Should we cosider defined &{ 'walk' } not to be a recommended expression?


Comment on Re^9: undef/defined &{$name} while "strict refs"
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://988681]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2014-11-23 08:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (129 votes), past polls