in reply to Re: Newbie question, advice appreciated
in thread Newbie question, advice appreciated
@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.";
|
---|