open(FH,'<',$new_file) || die $!; do {local undef $/;$test = }; close(FH); while($test =~ /\s*(.*?)\s*/sgi){ $out_put = $1; print "$out_put\n"; }