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

[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.

-- 

Laurent BARDI Ingenieur Systemes & Reseaux 
Centre National de la Recherche Scientifique
INSTITUT  de PHARMACOLOGIE et de BIOLOGIE STRUCTURALE
Tel : 05-61-17-59-47             http://www.ipbs.fr/
Fax : 05-61-17-59-94             lolo@ipbs.fr
CNRS-IPBS 205 Route de Narbonne 31400 TOULOUSE FRANCE 

///////////////////////////////////////////////////////////////////////////
/ There is worse than to have not succeded
:                              /
/ Not to have  tried
!                                                    /
///////////////////////////////////////////////////////////////////////////

If it stinks, it's chemistry. If it moves, it's biology.
If it does not work, It's computer science.

Linux the choice of a GNU generation

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