Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

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

by anazawa (Scribe)
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?

Log In?

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

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

    Results (387 votes). Check out past polls.