Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: List into two-dimensional array

by tybalt89 (Prior)
on Dec 14, 2020 at 22:23 UTC ( #11125200=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
      @{ $AoA[-1] } < $C ? $_ : [ $_ ] for @list;
    
    use Data::Dump 'dd'; dd \@list; dd \@AoA;
    
  2. or download this
    [1 .. 12]
    [[1 .. 4], [5 .. 8], [9 .. 12]]
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2021-04-19 18:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?