Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Sorable freeze/thaw losing object methods

by BrowserUk (Patriarch)
on Nov 22, 2011 at 19:47 UTC ( [id://939525]=note: print w/replies, xml ) Need Help??


in reply to Storable freeze/thaw losing object methods

Have you checked the size of what you receive is the same as the size of what you send?


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
  • Comment on Re: Sorable freeze/thaw losing object methods

Replies are listed 'Best First'.
Re^2: Storable freeze/thaw losing object methods
by unix_hacker_beard (Novice) on Nov 22, 2011 at 19:57 UTC
    I have not, but my assumption was if the serialized object was getting truncated in the process, it would no longer be unserializable (dangerous assumption since I haven't looked into how freeze/thaw work). How can I check the size of an object?
      How can I check the size of an object?

      Check the size of the transmission:

      my $toSend = freeze(\$command ); print length $toSend; $self->{channel}->send( $toSend ); ... my $received = $self->{channel}->receive_nb(); print length $received; my $command = thaw( $received );

      But ikegami's probably hit the nail on the head. Have you used the class at the receiver?


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.
        Edit: Nevermind my original response to this post. I am indeed receiving the same length I am sending so I am still unsure how to proceed debugging this.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://939525]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (3)
As of 2024-04-18 22:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found