Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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 making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2021-01-25 23:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?