in reply to perl equivalent to php array count function

In Perl, the array itself in scalar context gives the number of elements:

my @foo = qw/foo bar baz/; my $foocount = @foo; print $foocount, $/; print scalar(@foo), $/;
No function necessary.

After Compline,
Zaxo