in reply to Re^3: Building a dynamic array or some other method?
in thread Building a dynamic array or some other method?
is puzzling. I tried to find info on //= and found only a clumping of similar nomenclature vaguely saying it transfers info into arrays. But couldn't look at intermediate values from what I think is a for loop built into the end of the end of the 2nd line. The $_ is familiar vaguely as a reference to a value within a for loop (for instance), but the $ref->{$_} part, along with the //= {} (empty set?) is throwing me as to what's happening here.my $ref = \%database; $ref = $ref->{$_} //= {} for @$fields;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Building a dynamic array or some other method?
by afoken (Chancellor) on May 11, 2024 at 10:02 UTC | |
by CAdood (Acolyte) on May 13, 2024 at 16:13 UTC |