Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^4: Merge 2 strings like a zip [unzip()]

by hexcoder (Curate)
on Jul 09, 2015 at 08:09 UTC ( [id://1133907]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Merge 2 strings like a zip [unzip()]
in thread Merge 2 strings like a zip

print for unzip('AaBbCcDdEeFGHIJ', 5);

could be written more explicitly also as

for (unzip('AaBbCcDdEeFGHIJ', 5)) { print $_; }
The Perl documentation mentions this here: Statement Modifiers

Replies are listed 'Best First'.
Re^5: Merge 2 strings like a zip [unzip()]
by Anonymous Monk on Jul 09, 2015 at 08:24 UTC

    print for unzip('AaBbCcDdEeFGHIJ', 5); could be written more explicitly also as for (unzip('AaBbCcDdEeFGHIJ', 5)) { print $_; } The Perl documentation mentions this here: Statement Modifiers

    I think you 're looking for verbosely in lieu of explicitly

    I could be wrong :)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-03-29 12:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found