Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Insert into element into arrays ref

by AnomalousMonk (Bishop)
on Aug 23, 2019 at 05:04 UTC ( #11104880=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    for (my($k,$v)=each %{$data2->[0]}){
      $_->{$k} = $v for @$data1;
    }
    
  2. or download this
    my ($k,$v) = %{$data2->[0]};
    
    $_->{$k} = $v for @$data1;
    
  3. or download this
    c:\@Work\Perl\monks>perl
    use strict;
    ...
                'NUMBER' => '00023'
              }
            ];
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11104880]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2019-10-22 08:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?