Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: pushing an anonymous hash onto an array on the fly

by SuicideJunkie (Vicar)
on Feb 22, 2013 at 22:53 UTC ( [id://1020244]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    use List::MoreUtils qw(mesh);
    ...
        push @AoH, { mesh(@columns, @{[split /\|/,(shift @array)]}) } ;  
    };
    print Dumper @AoH;
    
  2. or download this
    C:\>perl test.pl
    $VAR1 = {
              'source_id' => 'source',
    ...
            };
    
    C:\>
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2024-04-24 20:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found