Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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

by Cristoforo (Curate)
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?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2017-11-19 07:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (278 votes). Check out past polls.

    Notices?