iamnewbie has asked for the wisdom of the Perl Monks concerning the following question:
my $testb = "hello,'world, yo',matt"; print $_, "\n" for split ',', $testb;
for e.g. my input is hello,'world, yo',matt and i want o/p as below
hello
'world, yo'
matt
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to use split() in perl to ignore white space and ','
by Athanasius (Archbishop) on Feb 11, 2015 at 06:49 UTC | |
by iamnewbie (Novice) on Feb 11, 2015 at 07:30 UTC | |
by soonix (Chancellor) on Feb 11, 2015 at 10:01 UTC | |
by Not_a_Number (Prior) on Feb 11, 2015 at 09:43 UTC | |
by brilant_blue (Beadle) on Feb 11, 2015 at 10:03 UTC | |
by karlgoethebier (Abbot) on Feb 11, 2015 at 14:31 UTC | |
|
Re: How to use split() in perl to ignore white space and ','
by choroba (Cardinal) on Feb 11, 2015 at 08:55 UTC | |
|
Re: How to use split() in perl to ignore white space and ','
by perloHolic() (Beadle) on Feb 11, 2015 at 09:43 UTC |