http://www.perlmonks.org?node_id=1009273


in reply to output of one program doesn't show in another on server

That's not the way to obtain the length (i.e., number of elements) of an array. See scalar. See also the discussion in Scalar values (in perldata) in the paragraph beginning 'The length of an array is a scalar value.' Dunno about the rest of your question.

>perl -wMstrict -le "my @ra = qw(a b c); print length @ra; print scalar @ra; ;; @ra = (); print length @ra; print scalar @ra; " 1 3 1 0