Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: build multidimensional array from arrays (mapcar)

by tye (Sage)
on Jan 29, 2004 at 19:56 UTC ( [id://325020]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Algorithm::Loops qw( MapCarE );
    
    my @one = qw( A B C D );
    my @two = qw( E F G H );
    my @tre = qw( W X Y Z );
    
  2. or download this
    my @mda = MapCarE { [@_] } \( @one, @two, @tre );
    
  3. or download this
    require Data::Dumper;
    print Data::Dumper->new([\@mda],['@mda'])
        ->Indent(1)->Terse(1)->Dump();
    
  4. or download this
    [
      [
    ...
        'Z'
      ]
    ]
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-04-23 21:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found