in reply to Capturing the nth word in a string

$_ = "ele1 ele2 ele3 ele4 ele5 ele6"; my @abc = split(/\s+/); print $abc[3];