in reply to Re^2: Reading Filesin thread Reading Files
Yes, like that if your input is split's default arugment $_. Or in your case: my @words = split/\s+/,$word;