#!/usr/bin/perl $ignore = 0; print "\n"; while () { $_ =~ s/') { $ignore = 1; } if ( $_ =~ '') { $ignore = 0; $_ = ""; } if (! $ignore) { print "$_"; } }