in reply to Doing IPC via class methods?

Setting class data is accross the whole system, right?

Only inside the same process, lest you stuff your class data into shared memory somehow and make sure it is not overwritten by another process at class initialization.

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}

Replies are listed 'Best First'.
Re^2: Doing IPC via class methods?
by leocharre (Priest) on Jul 24, 2007 at 14:49 UTC
    Ahh.. makes a ton of sense. Changes everything. Sigh. I feel like when I was little and I realized dirt and water will *not* make chocolate cake.

      You may not be able to do IPC for free with class methods, but you could use a disk based cache, a database or perhaps open a unix socket to a daemon lurking in within your class to do the IPC...

      Wrapping stuff in classes can still be a good idea, and if you are keen on the idea there's no reason you can't have a go at it.

      You've got the specs for your cake, just go and get the chocolate and see what you can whip up!

      (obligatory pun about fork)

      @_=qw; ask f00li5h to appear and remain for a moment of pretend better than a lifetime;;s;;@_[map hex,split'',B204316D8C2A4516DE];;y/05/os/&print;