go ahead... be a heretic | |
PerlMonks |
Re: Re: I/O problems...what am I missing?by slife (Scribe) |
on Sep 16, 2002 at 12:57 UTC ( [id://198232]=note: print w/replies, xml ) | Need Help?? |
"$control = @score; should be $control = $#score + 1; to get the size of the array" These statements are equivalent (since evaluating an array in a scalar context gives its length). Camel 3rd ed. p76 refers. Some have argued that the former is preferable (e.g. see MJD's comments).
In Section
Seekers of Perl Wisdom
|
|