in reply to What is the difference?
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: What is the difference?
by Abigail-II (Bishop) on Apr 08, 2003 at 14:38 UTC | |
|
Re: Re: What is the difference?
by jasonk (Parson) on Apr 08, 2003 at 14:33 UTC |