in reply to Can I pass a reference between two scripts?
At that exact moment, setting some other C pointer in some other process to that exact value of 0x12A99B will not result in a value which when dereferenced is 'Y'.
Perl is written in C and in this case would share C's limitations. The addresses in memory are not meaningful when sent from one process to another concurrent one. So the short answer is no, you cannot.
Sure, serializing your array is the right answer for how to do it, but if you want to be off-the-wall then convert your array to XML, write it to a file and then read it into your other process.
Who needs serialized arrays anyway? All data should always be transferred as XML. That way you can practice the skills you will need for SOAP, the Dublin Core and other XML implementations.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Can I pass a reference between two scripts?
by Abigail (Deacon) on Jun 28, 2001 at 03:39 UTC | |
by sierrathedog04 (Hermit) on Jun 28, 2001 at 05:44 UTC | |
by Abigail (Deacon) on Jun 28, 2001 at 09:59 UTC |