[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] duh: A small puzzler



John Porter writes:
|Jim Monty wrote:
|> By the way, the plus quantifier in this expression is superfluous:
|>     ($id) = split(/\s+/, $record);
|Only if, as in this case, there are no runs of whitespace longer
|than one.

However, if a single space is the column separator and columns can be
empty, then the + isn't just superfluous, it's wrong. Vicki didn't give
us enough information to say which is correct. Of course, she wasn't asking
about the split either...

Brian

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe