Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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
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 wandering the Monastery: (4)
As of 2014-08-30 23:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (294 votes), past polls