Problems? Is your data what you think it is? | |
PerlMonks |
Re^3: Subroutine not correct (I think)by Corion (Patriarch) |
on Jun 17, 2015 at 13:33 UTC ( [id://1130805]=note: print w/replies, xml ) | Need Help?? |
What steps have you taken to inspect the return value of your distance() function? Also consider re-reading sprintf and printf and the replies you already got. Many of them addressed two problems in your program, but changing the formula is only one problem.
In Section
Seekers of Perl Wisdom
|
|