in reply to another split question

split's default behavior will split on multiple whitespace, much like /\s+/, with the bonus of ignoring leading and trailing whitespace:

use strict; use warnings; while (<DATA>) { print "The fourth element is ", (split)[3], "\n"; } __DATA__ one two three four five six seven A B C D E F G H I spam eggs spam spam and spam
Hanlon's Razor - "Never attribute to malice that which can be adequately explained by stupidity"