in reply to Re^6: Key value pair in hash inside while loopin thread Key value pair in hash inside while loop
$pos = (split /\s+/)[0];
to
$pos = (split /\s+/, $ctline)[0];