@functxt = split /\s+/;
Usually, that's not the pattern you want to use with split. Given the data format specification we were given in the above problem, it wouldn't make a difference, but split ' ' (or just split with no arguments at all) is usually what is really wanted. The difference is that \s+ can produce a null field when there is leading whitespace.
-sauoq "My two cents aren't worth a dime.";
In reply to Re^2: Newbie question, advice appreciated
by sauoq
in thread Newbie question, advice appreciated
by Seventh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |