Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
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 making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2014-07-12 16:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (240 votes), past polls