in reply to Re: accessing stashes
in thread accessing stashes
That comes close, but I want something like this (the code below does NOT work):
That should printuse strict; sub hubba { } for my $symbol qw(hubba bubba) { print "$_: "; print defined *My::$symbol{CODE} ? "yep": "nope"; print "\n"; }
How can I do that?hubba: yep bubba: nope
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: accessing stashes
by ikegami (Patriarch) on Mar 01, 2019 at 19:14 UTC | |
by ikegami (Patriarch) on Mar 01, 2019 at 19:52 UTC | |
by morgon (Priest) on Mar 01, 2019 at 19:25 UTC | |
by ikegami (Patriarch) on Mar 01, 2019 at 19:28 UTC | |
by morgon (Priest) on Mar 01, 2019 at 19:35 UTC | |
by ikegami (Patriarch) on Mar 01, 2019 at 19:55 UTC | |
|
In Section
Seekers of Perl Wisdom