#!/usr/bin/perl $file = shift; open(I,"<$file"); local $/; $_ = ; s|(.*?)|"".join("\n",map{"$_"} split"\n",$1).""|ges; print;