News
Example Script: Filament Counter The above script doesn’t yet modify the G-code, so let’s write one that actually does something.
To see how associative arrays work, we’re going to look at both the Korn shell and Perl, though only the newest version of the Korn shell (referred to as “korn93”) supports associative arrays.
Basically, use <B>open</B> to create a filehandle (in the appropriate mode -- e.g. read, write, append, whatever) and then pass that as the first argument to printf, then close the filehandle.
Results that may be inaccessible to you are currently showing.
Hide inaccessible results