Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hello
What is this data structure I get with Dumper?
$VAR1 = [ { 'sourceL' => 'spacecraft', 'source' => 'MT', 'targetL' => 'vaisseau spatial' } ];
Why can I not read it with the following?
foreach (@data){ print my $target= ucfirst($_->{targetL}); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Read datastructure
by hippo (Archbishop) on Feb 05, 2021 at 23:46 UTC | |
by Anonymous Monk on Feb 05, 2021 at 23:49 UTC | |
|
Re: Read datastructure
by AnomalousMonk (Archbishop) on Feb 05, 2021 at 23:52 UTC | |
|
Re: Read datastructure
by Fletch (Bishop) on Feb 06, 2021 at 03:23 UTC |