3 ms·
> Because that could return an array or a hash @array[1] returns a single-element list-like thing. It mostly works, but you get a warning: https://perldoc.per
by jwilk 4y ago
> Because that could return an array or a hash
@array[1] returns a single-element list-like thing. It mostly works, but you get a warning:
https://perldoc.perl.org/perldiag#Scalar-value-@%25s%5B%25s%5D-better-written-as-$%25s%5B%25s%5D https://perldoc.perl.org/perldiag#Scalar-value-@%25s%5B%25s%...