cdaugherty82 has asked for the wisdom of the Perl Monks concerning the following question:
Having trouble with the following perl script (C:\perl\run-gpx.pl) that i've been trying to use with for 3d printing. Found script here, modified slightly for folder paths. http://www.3duniverse.org/2014/01/05/using-slic3r-with-a-flashforge-creator/
I'm getting this error: Search pattern not terminated at C:\perl\run-gpx.pl line 7.
#!/usr/bin/perl -i use strict; use warnings; use File::Basename; use Win32; my $fname = $ARGV[0]; my ($name, $path, $suffix1) = fileparse($fname, qr’\.[^\.]*'); my $shortname = "$name$suffix1"; my $shortpath = Win32::GetShortPathName($path); exec "c:/Slic3r/gpx-win32-1.3/gpx.exe" -g -p -m r1d $shortpath$shortna +me "C:/Slic3r/Output Files/$name.x3g"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Beginner having trouble with short script
by choroba (Cardinal) on Nov 10, 2016 at 00:34 UTC | |
|
Re: Beginner having trouble with short script
by AnomalousMonk (Archbishop) on Nov 10, 2016 at 01:02 UTC |