in reply to Re^2: Scalar value @scores_sorted[$i] better written as $scores_sorted[$i]
in thread Scalar value @scores_sorted[$i] better written as $scores_sorted[$i]

The counter examples fall into two categories: scalar context, where nothing but a scalar can be returned, and where rules are used to make the variable an lvalue.
  • Comment on Re^3: Scalar value @scores_sorted[$i] better written as $scores_sorted[$i]

Replies are listed 'Best First'.
Re^4: Scalar value @scores_sorted[$i] better written as $scores_sorted[$i]
by JavaFan (Canon) on Jan 03, 2011 at 14:57 UTC
    I'd say scalar context is common enough in Perl to debunk the entire The sigil to use is the type being returned statement.