My brother tells me that even in C (which has pointer arithmetic) the value of a pointer in one process is meaningless to any other process. In other words, consider a C pointer that at a particular moment has a value of 0x12A99B and which points to a char having the value 'Y'.
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.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.