Thank you ,but I 'm sorry i give you the wrong number ,I have edit it.I have got the answer,thank you
#! /usr/bin/perl -w
open(F1, '<', "$ARGV[0]") or die;
while (<F1>){
if ($.%2 != 0) {
@val = split(/\_x/);
$cnt = $val[1];
}
else{ chomp($_); print "$_ $cnt \n"; }
}