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:$VAR1=[ a, b, \"c,d\" ]
In reply to Split process by santhosh_89
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |