Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: Splitting multiline scalars into different array entries

by broquaint (Abbot)
on Aug 05, 2005 at 11:23 UTC ( #481198=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Algorithm::Loops 'MapCar';
    
    ...
        ? MapCar {[@_]} map([split "\n"], @$_)
        : $_
    } @AoA;
    
  2. or download this
    use Test::More tests => 1;
    
    ...
    } @AoA;
    
    is_deeply \@results, $desired, "The arrays match!";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://481198]
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 2015-09-03 23:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred temperature scale is:










    Results (128 votes), past polls