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