- or download this
{ \($$a->{$b}) }
- or download this
% perl rec_walk.pl
Can't call method "List::Util::reduce" on unblessed reference at rec_w
+alk.pl line 9.
- or download this
use strict;
my %myhash;
...
require List::Util;
return List::Util::reduce { \($$a->{$b}) } \shift, @_;
}
- or download this
use List::Util 'reduce';
sub pointer_to_element {
return reduce { \($$a->{$b}) } \shift, @_;
}