local $/; my $line = ; my @matched = $line =~ /"(.*?)"/sg; local $, = '|'; print @matched;