|
|
| Perl Monk, Perl Meditation | |
| PerlMonks |
Split processby santhosh_89 (Scribe) |
| on Aug 04, 2009 at 06:20 UTC ( [id://785649]=perlquestion: print w/replies, xml ) | Need Help?? |
|
santhosh_89 has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
I have a scalar variable,I need to be splited based on the comma(,).if the comma is present with in double or single quote.The split or regular expression should not consider it. Input: my $a="a,b,\"c,d\""; There is a comma with in c and d.The code should not be considered that comma(,),The output should be as following. output of Dumper:
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||