in reply to I cannot believe I'm asking a question about 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 |