in reply to Scalar value @scores_sorted[$i] better written as $scores_sorted[$i]

Use : print $scores$i; print "\n";
  • Comment on Re: Scalar value @scores_sorted[$i] better written as $scores_sorted[$i]

Replies are listed 'Best First'.
Re^2: Scalar value @scores_sorted[$i] better written as $scores_sorted[$i]
by The_Ghost (Acolyte) on Jan 03, 2011 at 10:32 UTC
    With foreach is faster foreach (@scores ){ print $_."\n"; }