|No Go - STDIN problems? (was: Empty Output)|
|Posted By: Antarctico||Date: 9/3/13 10:53 a.m.|
In Response To: Re: Empty Output (was: Hopper's rsrc2mml.pl Utilit (Hopper)
: : my Perl Windows install does NOT contain "Macbinary.pm"
: That file is in the classic-mac-utils directory on GitHub. (You do not want a
I got your the version of Macbinary.pm from your classic-mac-utils directory and dropped it into my lib folder along with macbin2rsrc.pl and macbin2data.pl (in my case the path worked out to "J:\Apps\Dwimperl\perl\lib"). The results were not useful, again 0 byte output files. To test to see if the scripts were running at all, I inserted "print "Hello World.\n";" lines in to the two .pl files and then my output file was not 0 bytes but contained "hello world". As a further test, I removed my test line from the .pl files and it to Macbinary.pm, again my output file now contained "hello world". What I concluded from this is that perl found all three files and ran them, even if not in a useful way.
So, I gave up on the MacBinary conversion scripts and found a very functional Windows command line .exe, Mac Binary Converter that would do the conversion and splitting of the resource and data forks. Having done that, and now having converted and split data and resource files, when trying to run rsrc2mml.pl I get this error:
Use of uninitialized value $rsize in addition <+> at J:\Apps\Dwimperl\perl\lib\rsrc2mml.pl line 278
Line 278 is:
$BLOBoff += $rsize
My feeling is there is a problem with STDIN reading the source file and $rsize is not being filled (initialized) with any value. Line 277 being:
my $rsize = read STDIN, $chunk, $size;
Which is where, I assume, the variable $rsize is supposed to be filled with the raw data from the source file.
Any thoughts as to what is going awry? :)
|Hopper's rsrc2mml.pl Utility||Antarctico||8/30/13 5:05 p.m.|
|Re: Hopper's rsrc2mml.pl Utility||Hopper||8/31/13 6:07 a.m.|
|Re: Hopper's rsrc2mml.pl Utility||Antarctico||8/31/13 10:10 a.m.|
|Empty Output (was: Hopper's rsrc2mml.pl Utility)||Antarctico||8/31/13 11:21 a.m.|
|Re: Empty Output (was: Hopper's rsrc2mml.pl Utilit||Hopper||8/31/13 12:11 p.m.|
|Re: Empty Output (was: Hopper's rsrc2mml.pl Utilit||Antarctico||8/31/13 1:03 p.m.|
|Re: Empty Output (was: Hopper's rsrc2mml.pl Utilit||Hopper||9/1/13 5:55 a.m.|
|No Go - STDIN problems? (was: Empty Output)||Antarctico||9/3/13 10:53 a.m.|
|Re: Hopper's rsrc2mml.pl Utility||Hopper||8/31/13 11:27 a.m.|
|Re: Hopper's rsrc2mml.pl Utility||Antarctico||8/31/13 12:00 p.m.|
|Re: Hopper's rsrc2mml.pl Utility||Forrest of B.org||9/3/13 11:25 p.m.|
|Re: Hopper's rsrc2mml.pl Utility||Antarctico||9/4/13 4:28 p.m.|
|Re: Hopper's rsrc2mml.pl Utility||treellama||9/5/13 3:36 a.m.|
Problems? Suggestions? Comments? Email email@example.com
Marathon's Story Forum is maintained with WebBBS 5.12.