The unpack doesn't work for me. $segment_size is returned with a huge negative value (causing it to die with a "bad adress" error).
$shmbuffer seemds to be in order, but I haven't been able to fix this yet. Any ideas?
I'm desperate for easy shared memory operation, and this snippet is pretty close to the results of my own attempts, but it yields the same error. Maybe it's a Solaris problem for me. I'll test it on other machines.