This PR fixes the line recognition code that was failing on slic3r vase-mode generated gcode files by allowing the Z coordinate to come first.
It also contains some changes to improve the perl code.
Small changes to reflect current best practices for Perl 5 code.
Improve regular expressions to use simpler character classes.
The final commit uses a perl 5.10 feature that reduces the long run of regular expression matches into a pair of expressions that should be easier to maintain.
If you would like me to break this PR into smaller pieces, let me know.
This PR fixes the line recognition code that was failing on slic3r vase-mode generated gcode files by allowing the Z coordinate to come first.
It also contains some changes to improve the perl code.
The final commit uses a perl 5.10 feature that reduces the long run of regular expression matches into a pair of expressions that should be easier to maintain.
If you would like me to break this PR into smaller pieces, let me know.