a,b,"hey,you",etc a, b, "hey, you", etc #### @fields = $s =~ /("[^"]*"|[^,]*),/gc; $lastfield = $s =~ /\G(.*)/; push @fields, $lastfield;