Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: I cannot believe I'm asking a question about split

by Cristoforo (Deacon)
on Aug 08, 2012 at 22:07 UTC ( #986371=note: print w/ replies, xml ) Need Help??


in reply to I cannot believe I'm asking a question about split

From the documentation for split:
1. print join(':', split(',', 'a,b,c,,,')), "\n"; produces the output 'a:b:c', but the following: 1. print join(':', split(',', 'a,b,c,,,', -1)), "\n"; produces the output 'a:b:c:::'.

Chris

Comment on Re: I cannot believe I'm asking a question about split
Download Code
Replies are listed 'Best First'.
Re^2: I cannot believe I'm asking a question about split
by Anonymous Monk on Aug 08, 2012 at 22:15 UTC
    Many many thanks Chris.. That's exactly what I was looking for!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (9)
As of 2016-05-27 20:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?