Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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?
[Discipulus]: was global var or global war?!?
[Discipulus]: hey doc, you said global var?!

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2017-04-29 21:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (534 votes). Check out past polls.