Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Splitting multiline scalars into different array entries

by Tanalis (Curate)
on Aug 05, 2005 at 10:36 UTC ( #481171=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    foreach my $row (@AoA) {
      my @foo = map { split /\n/ } @$row;
    ...
        push @new_rows, [ @foo[ $i .. -1 + $i + $width ] ];
      }
    }
    
  2. or download this
    $VAR1 = [
              [
    ...
                'cells'
              ]
            ];
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2020-06-01 17:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?



    Results (6 votes). Check out past polls.

    Notices?