I would suggest giving Modern Perl or Learning Perl and Programming Perl a good read to get down some of the fundamentals.
Update: Also you set $a and $b to values, then immediately set them to int($phi) and int($psi) which are undefined. If you were running with strict and warnings the compiler would have shown you that.
In reply to Re^3: perl error
by dreadpiratepeter
in thread perl error
by topaz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |