Subject: | two bugs in CAD-Format-STL |
Date: | Tue, 30 Mar 2010 19:27:41 -0700 |
To: | bug-CAD-Format-STL [...] rt.cpan.org |
From: | Mike Sheldrake <mike [...] sheldrake.net> |
BUG 1
CAD::Format::STL, v0.0.1
STL.pm, line 387
open(my $fh, '>', $file) or
should be
open(my $fh, '>'. $file) or
(dot instead of comma)
BUG 2
CAD::Format::STL::part, v0.0.1
part.pm, lines 40 and 41:
$self->add_facets(@facets) if(@facets);
bless($self, $class);
can be swapped to
bless($self, $class);
$self->add_facets(@facets) if(@facets);
Otherwise $self isn't a blessed reference yet, so calling add_facets
gives an error
-Mike Sheldrake