To be in the safe side, Next time when you write something like that consider adding some extra checking in your sub for example
sub covariance { my ($arraylref, $array2ref) = @_; if ( ref($arraylref) ne 'ARRAY' or ref($array2ref) ne 'ARRAY') { return "expecting array reference to be passed"; } }
In reply to Re: covariance calculation
by ahmad
in thread covariance calculation
by vis1982
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |