in reply to Perl - unix process
If you are using require, then really you are treating C.perl as a module. It's more conventional to use a .pm extension and use use. But in either case what you are doing is somewhat like a #include in C - in a sense you are including the (compiled) source of C.perl in the execution space of A.perl. If you run B.perl as a separate process the B.perl process does not have access to the execution context of A.perl and thus does not have access to the array tucked away in C.perl.
You need to tell us something of the bigger picture and what you are trying to achieve at a higher level. You should also put together a little sample code to demonstrate what you are trying to do. Acme::ESP is currently a little flaky so it doesn't always help with this sort of question (although no-one is reporting bugs - we just expect the module's developers to know).
|
|---|