in reply to is split optimized?
According to perldoc -f split
When assigning to a list, if LIMIT is omitted, Perl supplies a LIMIT one larger than the number
of variables in the list
So,
($y) = split(/\s+/, $x)
is equivalent to
($y) = split(/\s+/, $x, 2)
which, as others have pointed out, will only split it once.