#!/usr/bin/perl my $a, $b, $c, $s, $out; my @l; my @p; while (<>) { s@ id="[^"]*"@@; if (m@