in reply to Re: Having trouble reading in a hash from a referenced array
in thread Having trouble reading in a hash from a referenced array
Wouldn't using $VAR1->{"movie_results"}->[0] make it clearer that key/entry "movie_results" contains an array reference? $VAR1->{"movie_results"}[0] is confusing (to me). Why is it even allowed to work? It begs me to turn to a manual for clarification about what data types a Perl hash can contain. Sanity check: Perl Data Structures still hold only numbers, scalars and references. OK. Personally, I like to see this extra clarification (the ->) in my (and others) code. It makes reading and understanding (other's) code faster, albeit it seems like a sticking finger!!!.
bw, bliako
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Having trouble reading in a hash from a referenced array
by LanX (Saint) on Dec 18, 2020 at 23:10 UTC | |
by bliako (Abbot) on Dec 18, 2020 at 23:24 UTC | |
by jo37 (Curate) on Dec 19, 2020 at 14:09 UTC | |
by LanX (Saint) on Dec 19, 2020 at 01:04 UTC | |
by LanX (Saint) on Dec 19, 2020 at 01:41 UTC |