in reply to Re: Send/receive array through IO::Socket?
in thread Send/receive array through IO::Socket?

sockets know only a series of bits, not data structures.

Okay. That validates my conclusion. Thanks! Unfortunately, Storable suffers the same inconvenience as YAML. At least I'm on the right track now.

Replies are listed 'Best First'.
Re^3: Send/receive array through IO::Socket?
by Tanktalus (Canon) on Dec 01, 2005 at 22:34 UTC

    Not quite. Storable suffers completely different inconveniences from YAML. Storable can get tripped up if the levels of Storable on client and server aren't compatable. You have to be a bit careful if the endianness of the client and server are different (I think there's an "nstore" and "nthaw" for network-order storing) - assuming the levels of Storable are otherwise compatable.

    But it is part of the core, so it's already installed. That inconvenience is unique to YAML. (Well, unique in the context of YAML vs Storable.)

Re^3: Send/receive array through IO::Socket?
by philcrow (Priest) on Dec 01, 2005 at 20:47 UTC
    Storable has been a standard module for quite a while.

    Phil

      It's not part of our core...

      CS/AIX i2mptpr3 $ perl -v

      This is perl, v5.6.0 built for aix
      ...

      CS/AIX i2mptpr3 $ perl -e 'use Storable;'
      Can't locate Storable.pm in @INC
      ...