in reply to Scalar value @scores_sorted[$i] better written as $scores_sorted[$i]
Perl 5 is stricter - it insists on Scalars being represented by the "$" sigil - in your case, printing ONE score item is a scalar, so perl (5) expects a "$".
Syntactic sugar causes cancer of the semicolon. --Alan Perlis
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Scalar value @scores_sorted[$i] better written as $scores_sorted[$i]
by JavaFan (Canon) on Jan 03, 2011 at 10:09 UTC |