Hello all,
I am having an issue sending data over a perl socket. I am using Storable. I am using IO::SOCKET to setup the client server connection. Here is the issue. I nfreeze a hash of hashes and send it over the socket and thaw it. When I thaw it on the server side, the structure looks as it should. When i thaw it on the client side, it says the structure is undef; I can not figure out why this is. Here is a code snippet
#server Side
$dirStructure{'FOLDER'} = {'dirs' => \@dirResults };
$send_data = nfreeze(\%dirStructure);
$client_socket->send($send_data);
#client Side
my $ref = thaw ( $recv_data );
print Dumper $ref;
I'm using data::dumper to view the structure and it says for the output on the client side "$VAR1 = undef; " Anyone have any ideas on this one? Thank you very much for your time
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.