Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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

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?
LanX ... me is scared of people voting for Trumps
[erix]: until good old Putin lobs a bomb on Berlin :)
[Your Mother]: “I’m afraid of Americans…”
[Your Mother]: “No one needs anyone / They don’t even just pretend…”
[erix]: they've stuck nuclear missiles in Kaliningrad - they can just reach Berlin :)
[LanX]: naaah! Putin wouldn't nuke all the Russians in Berlin
[Your Mother]: Putin is a bad guy but he’s not that kind of bad guy. (Who would launch.)
[erix]: fortunately, Putin seems to be ill -- or at least, they're building a hospital for him and his cronies in Moscow
[erix]: nobody knows what kind it takes :)
[erix]: I say his seems a face that launches a thousand missiles :)

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2017-01-20 00:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (173 votes). Check out past polls.