# open my $fh, '/home/test.xml' or die $!; my $fh = \*DATA; while (<$fh>) { next if m{(.*?)}i; print; } __DATA__ test light information test light informa