[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] Re: Mac resource fork question



At 2:26 PM -0600 11/19/97, David C. Schooley wrote:

* The following line of code comes from Paul's "Conversions.pm" module.
* 
*     my $resfork = POSIX::open($outname,
*                 &POSIX::O_WRONLY|&Fcntl::O_RSRC |&POSIX::O_CREAT)
*                 or croak("Unable to open the resource fork of $outname");
* 

I really appreciate the help you all have given, but I'm still not able to
make things work.  It seems as if I have two, conflicting, problems.
First, I've been running MacPerl 5.1.3r2 and I can get everything I want to
work, but not including the resource fork question I sent out earlier.  So,
the above reply leads me to look for the Fcntl module.  As near as I can
tell, 5.1.3r2 doesn't have that.  So, I grab the latest version of MacPerl;
5.1.5r4.  Sure enough, it has the needed module.  However, I'm now stuck
with some instability.  This version seems to operate very strangely with
the MacPerl::GetFileInfo() routine - I cannot make this return expected
results - usually it just returns nothing, but it is unpredictable.  I have
written a smaller script and the function seems to work as expected, but in
my actual script it will behave differently depending on changes made
elsewhere in the script!  In general, it doesn't seem to work.  The same
script seems to be very stable in 5.1.3r2.  So, the question is, has anyone
else seen this kind of anomalous behavior in 5.1.5r4 (with the patch btw)?
Can anyone shed some light?  I seem to be very close to a script that does
exactly what I want, but, I'm stymied...

Thanks,

	- wblj <><



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch