#!/usr/bin/perl
# your code goes here
use strict;
use warnings;
use Data::Dumper;
foo "bar" baz
foo 'bar' baz
foo '!bar" baz
foo !bar bas
/;
if (my @l = $v =~ m/'([^']*)'|"([^"]*)"/g) {
print '>>> matched ' . Dumper(\@l);
}
IyEvdXNyL2Jpbi9wZXJsCiMgeW91ciBjb2RlIGdvZXMgaGVyZQoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgRGF0YTo6RHVtcGVyOwoKbXkgJHYgPSBxLwoJZm9vICJiYXIiIGJhegoJZm9vICdiYXInIGJhegoJZm9vICchYmFyIiBiYXoKCWZvbyAhYmFyIGJhcwovOwoKaWYgKG15IEBsID0gJHYgPX4gbS8nKFteJ10qKSd8IihbXiJdKikiL2cpIHsKCXByaW50ICc+Pj4gbWF0Y2hlZCAnIC4gRHVtcGVyKFxAbCk7Cn0=