hotshot has asked for the wisdom of the Perl Monks concerning the following question:
without replacing all commas to spaces and split by spaces ?my $string = '4,5, ,, ,6,,,'; should give after spliting: @splited == (4, 5, 6)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: spliting a string
by joealba (Hermit) on Dec 04, 2001 at 19:02 UTC | |
|
Re: spliting a string
by Rhose (Priest) on Dec 04, 2001 at 19:04 UTC | |
|
Re: spliting a string
by giulienk (Curate) on Dec 04, 2001 at 21:56 UTC | |
|
Re: spliting a string
by hotshot (Prior) on Dec 04, 2001 at 19:25 UTC | |
by Rhose (Priest) on Dec 04, 2001 at 19:36 UTC |