Update Ok - there is no wc in the second example. But once again look at the line with += the left side of it is a list - a list does not return its length in a scalar context (only an array do it).
Update As Abigail-II pointed out split in scalar context returns the number of fields.
In reply to Re: What is the difference?
by zby
in thread What is the difference?
by YAFZ
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |