Code: Select all
package example;
use strict;
use warnings;
use application "polytope";
sub my_test_routine {
my $v = new Vector([1,0,0]);
return $v;
}
1;
Code: Select all
polytope > use example;
polytope > $v = example::my_test_routine();
polymake: ERROR: Can't locate object method "new" via package "Vector" at example.pm line 7.
Is there an easy fix for this?