Don't ask to ask, just ask | |
PerlMonks |
Re: The problem of getting the unit vector "Undefined subroutine &main::Normalize"by GrandFather (Saint) |
on Aug 30, 2017 at 01:16 UTC ( [id://1198316]=note: print w/replies, xml ) | Need Help?? |
A couple of minor coding related comments: for (my $frame = 201; $frame <= 300; $frame++)is better written: for my $frame (201 .. 300)Perl treats $a and $b as somewhat special variables (see sort) so it's usually best to avoid them unless the sort context version of the variables is what you really mean.
Premature optimization is the root of all job security
In Section
Seekers of Perl Wisdom
|
|