in reply to Re: More efficient dereferencing of a subroutine return
in thread More efficient dereferencing of a subroutine return
If the dereferencing of an array returned by a function is my $arrayref = \@{ function() } then how does that work with the keys() function?
I tried my $arrayref = \@{ keys(%$someHashRef) || [] } but something makes it break.
What makes the keys() function a special case?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: More efficient dereferencing of a subroutine return
by choroba (Cardinal) on Apr 12, 2021 at 13:27 UTC | |
by mrbark (Acolyte) on Apr 12, 2021 at 13:39 UTC |