$_="one two three four five six"; #it may be also be $abc=" one two three four five six" ($fieldfour)=/[^\s+]*\s+[^\s+]*\s+[^\s+]*\s+[^\s+]/; print "\n the fourth field is $fieldfour \n"; exit(0);