![]() |
|
Perl: the Markov chain saw | |
PerlMonks |
Re: Using 'keys' on a listby glycine (Sexton) |
on Jun 29, 2021 at 17:57 UTC ( #11134457=note: print w/replies, xml ) | Need Help?? |
>Also, is there a way of creating a hash for consumption by 'keys' in the above situation which doesn't involve creating a hash reference from a list and then immediately dereferencing? this is because hash hope first argument is a hash or array, so if offer a list the first argument is first element of list. but you hope finish in one line but don't want %{{}} I can't offer any to avoid hash reference, but if the pupose just look tidy maybe let subroutine f() return reference? so we can use: hope this can help. edit:I see you say you don't want :(
In Section
Seekers of Perl Wisdom
|
|