Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 taking refuge in the Monastery: (5)
As of 2020-12-04 01:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (58 votes). Check out past polls.

    Notices?