http://www.perlmonks.org?node_id=313857


in reply to Compute Angles of a Right Triangle

If it's expecting references, maybe my $ang = vecang(\@p,\@q);?
the forward slashes pass the arrays by reference. see perlref and perlreftut for details.