Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^3: map split vs array split

by radiantmatrix (Parson)
on Jul 31, 2007 at 15:18 UTC ( [id://629851]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    foreach (@lines) {
       my @lines1 = split(' ', $_); # $_ is "it" -- the current element of
    + @lines
       print @lines1,"\n";
    }
    
  2. or download this
    map { print split(' ', $_),"\n" } @lines;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://629851]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-04-19 13:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found