|[WP34s] About the Perl tools|
Message #1 Posted by fhub on 19 Dec 2011, 7:52 a.m.
After the latest wp34s_asm.pl suddenly stopped working with my TinyPerl, I've done some trial-and-error changes to this Perl script, because I have no clue about the Perl language at all.
With this latest asm.pl I got an error message about "POSIX", so I looked for this name in the source and found a line "use POSIX;". Now after removing (or commenting out) this line, the assembler is working again with TinyPerl. :-)
Ok, after this experience I also tried to fix the preprocessor pp.pl, because this one has never worked for me. Here the problem is not "POSIX" but after a few compares I found that the line "use strict;" is the reason for the failure with TinyPerl, and after removing this line now also the preprocessor is finally working here for me.
Now the only remaining problem is the new library manager lib.pl:
After having also removed the "use POSIX" and "use strict" lines to avoid the first error messages, I still get an error when I try to run it: "ERROR: lib::split_END: Likely the assembler run failed. Halting lib."
Ok, looking at the source I saw that it calls the assembler script as subprocess (in the line 'my $DEFAULT_ASM = "wp34s_asm.pl";), and this can't work of course for me because I don't have a full Perl installed. So I tried to call TinyPerl instead by changing the line above to "my $DEFAULT_ASM = "tinyperl.exe wp34s_asm.pl";", but that didn't work but gave a new error message:
"ERROR: lib::run_prog: Cannot locate daughter script 'tinyperl.exe wp34s_asm.pl' in current directory or '.\'."
Well, I could imagine that my trial won't work, because certainly the Perl script lib.pl can only call a Perl script as daughter, but not an EXE file like TinyPerl.
But now I've no idea how I could solve this last problem, so that also the new libmanager would work here with my TinyPerl. Does any Perl expert here have any suggestions for me? ;-)
Edited: 19 Dec 2011, 7:53 a.m.