my $size = scalar @$var; [download]
In reply to Re: Passing reference to subroutine by aukjan in thread Passing reference to subroutine by iphony