Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 pondering the Monastery: (20)
As of 2014-08-27 14:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (241 votes), past polls