Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^2: Read two values from inputby ikegami (Patriarch) |
on Nov 25, 2011 at 00:43 UTC ( [id://939966]=note: print w/replies, xml ) | Need Help?? |
split(' ', $line) has the advantage of ignoring leading whitespace and accepting tabs in addition to spaces. It also makes the chomp useless.
In Section
Seekers of Perl Wisdom
|
|