Others have pinpointed the problem of not taking and passing an array reference. Just for grins, run the OPed code without strictures asserted, e.g.,
# use v5.16.3;
# use strict;
(the use v5.16.3; statement has to be commented out because IIRC use-ing Perl version 5.16+ automatically asserts strictures), and see what happens. Note that you can still assert warnings. Is there necessarily any hint that something might be going wrong?
Give a man a fish: <%-{-{-{-<
In reply to Re: Using Dereferencing
by AnomalousMonk
in thread Using Dereferencing
by catfish1116
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |