Don't ask to ask, just ask | |
PerlMonks |
Re^3: perl errorby dreadpiratepeter (Priest) |
on Jul 29, 2011 at 00:10 UTC ( [id://917372]=note: print w/replies, xml ) | Need Help?? |
Actually, your code has a number of problems.
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. -pete "Worry is like a rocking chair. It gives you something to do, but it doesn't get you anywhere."
In Section
Seekers of Perl Wisdom
|
|