in reply to How can I get the last element of an array inside of fetchall_arrayref?
Scalar value @total[-1] better written as $total[-1] at ...
If you know you only want one element from the array, use the dollar sign. At sign is for two and more, e.g. @total[1, 2].
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How can I get the last element of an array inside of fetchall_arrayref?
by Lewisa (Novice) on Mar 23, 2021 at 18:09 UTC |