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

RE: [MacPerl] how "require" works?



The process (MacPerl) is almost certainly creating working directory references
for the handling of the require/use. As long as these exist, you will not be able
to unmount. There are only two solutions if this is the case:

1) quit MacPerl
2) write an XFCN to go through the WD reference table via low globals
   and remove those on the mounted volume. I do have example C code
   somewhere.

Or, maybe there is something in MacPerl', but I doubt it.

----------
From: 	Laurent Bardi
Subject: 	[MacPerl] how "require" works?

Hi,

We have made some test and found that using our libs with "require" is
more faster than using it wit "use". But it seems that we have a
problem.
We use library that stands on a network volume. The main programm mount
the volume, and then do a do("network_vol:main2.pl"). In the main2.pl we
do "require" of libs that stand in the network volume.
We want to unmount the volume at the end of the main programm (after
main2 has returned).
Unfortunately, at the unmount he complains about something that is used
on that network volume.

I ve verified that i ve not forget to close a file: it is not that.
(by the way is there any array that contains the list of opened files
??)

Now, i suspect the "require" to open files and close them at the end of
the main programm (not the main2)

Am I thinking well? Is there a solution ? 

many thanks in advance.


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