In general, classes in Perl are just packages. They can contain data and methods, as usual packages.
package Point;
use strict;
my $CANVAS_SIZE = [1000, 1000];
sub new {
...
}
sub polar_coordinates {
...
}
1;
It is important to note that the variables declared in a packa...