rizen / SVG-Estimate

Will estimate the length of the paths in an SVG file.
2 stars 2 forks source link

something generating warnings #3

Open rizen opened 8 years ago

rizen commented 8 years ago

A user reported on Reddit that they were getting all kinds of warnings generated: https://www.reddit.com/r/lasercutting/comments/4oaty3/svgestimate_i_wrote_this_perl_module_to_help/

Use of uninitialized value in subtraction (-) at /usr/local/share/perl5/SVG/Estimate/Path/Arc.pm line 175. Use of uninitialized value in subtraction (-) at /usr/local/share/perl5/SVG/Estimate/Path/Arc.pm line 176. Use of uninitialized value in addition (+) at /usr/local/share/perl5/SVG/Estimate/Path/Arc.pm line 201. Use of uninitialized value in addition (+) at /usr/local/share/perl5/SVG/Estimate/Path/Arc.pm line 201. Use of uninitialized value in subtraction (-) at /usr/local/share/perl5/SVG/Estimate/Path/Arc.pm line 175. Use of uninitialized value in subtraction (-) at /usr/local/share/perl5/SVG/Estimate/Path/Arc.pm line 176. Use of uninitialized value in addition (+) at /usr/local/share/perl5/SVG/Estimate/Path/Arc.pm line 201. Use of uninitialized value in addition (+) at /usr/local/share/perl5/SVG/Estimate/Path/Arc.pm line 201. Use of uninitialized value in subtraction (-) at /usr/local/share/perl5/SVG/Estimate/Path/Arc.pm line 175. Use of uninitialized value in subtraction (-) at /usr/local/share/perl5/SVG/Estimate/Path/Arc.pm line 176. Use of uninitialized value in addition (+) at /usr/local/share/perl5/SVG/Estimate/Path/Arc.pm line 201. Use of uninitialized value in addition (+) at /usr/local/share/perl5/SVG/Estimate/Path/Arc.pm line 201. Use of uninitialized value in subtraction (-) at /usr/local/share/perl5/SVG/Estimate/Path/Arc.pm line 175.

perlDreamer commented 8 years ago

Lines 175, 176 look for the start_point and point attributes. Since they are required, the module should have die'd after emitting the warnings.