in reply to Re: Read two values from input
in thread Read two values from input

split(' ', $line) has the advantage of ignoring leading whitespace and accepting tabs in addition to spaces. It also makes the chomp useless.