in reply to perl equivalent to php array count function
In Perl, the array itself in scalar context gives the number of elements:
No function necessary.my @foo = qw/foo bar baz/; my $foocount = @foo; print $foocount, $/; print scalar(@foo), $/;
After Compline,
Zaxo
|
|---|