foreach $Line (@code) { $Line =~ s!"(.*)"!"$1"!g; print "$Line\n"; }