p***@bigfoot.com
2007-04-25 03:39:01 UTC
Is it possible to figure out all modules a script might need before
running it from an embedded interpreter?
I'm looking into adding a perl interpreter to an internal company
application. The application will need to run specific perl scripts which
it will dynamically download. That part shouldn't be too tough... but
these scripts could refer to perl modules which are not available on the
client workstation. In fact, initially the client workstation will have
no perl installation at all.
Is there a way to pre-compile a script to figure out what modules it may
need so I can download them and store them in a cached lib directory?
Obviously I will need to recursively pre-compile each module after it's
downloaded in order to figure out if it requires any modules not already
cached as well, but I assume the same process could be used.
PS. Hopefully this is an appropriate list for this type of question. If
not, I'd appreciate any suggestions for a more appropriate list. Thanks.
running it from an embedded interpreter?
I'm looking into adding a perl interpreter to an internal company
application. The application will need to run specific perl scripts which
it will dynamically download. That part shouldn't be too tough... but
these scripts could refer to perl modules which are not available on the
client workstation. In fact, initially the client workstation will have
no perl installation at all.
Is there a way to pre-compile a script to figure out what modules it may
need so I can download them and store them in a cached lib directory?
Obviously I will need to recursively pre-compile each module after it's
downloaded in order to figure out if it requires any modules not already
cached as well, but I assume the same process could be used.
PS. Hopefully this is an appropriate list for this type of question. If
not, I'd appreciate any suggestions for a more appropriate list. Thanks.