my $count = () = function(); print $count; # $count is '5' sub function { return qw(a b c d e); } [download]
In reply to Count the number of return values from a subroutine by dkubb