in reply to Re^2: Print all derefs and method calls in a directory (Friday golf)
in thread Print all derefs and method calls in a directory (Friday golf)
There are four derefences in
@{$people->{login}->{desk}->{paperclips}}
but only three arrows.
The rest of your post doesn't relate to what I said, so I have no comment on it save that I rarely have paths that long.
for my $employee (@$employees) { for my $desk (@{ $employee->{desks} }) { $paperclips += $desk->{paperclips}; } }
Four dereferences, but only two arrows. And the output of your script doesn't illustrate the structure at all. Data::Dumper will do that to some extent.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Print all derefs and method calls in a directory (Friday golf)
by jepri (Parson) on Jan 09, 2009 at 10:29 UTC | |
by ikegami (Patriarch) on Jan 09, 2009 at 10:33 UTC |
In Section
Seekers of Perl Wisdom