my $first = `head -1 $filename`; my $second = `tail -1 $filename`;