in reply to Re^2: IPC::SharedMem::stat using Class::Struct (UPDATED)
in thread IPC::SharedMem::stat using Class::Struct

Hello haukex,

Thanks for correcting my assumption(s). The AM showed some code that possibly is an older version. I was under the impression that an older version was using internal implemented methods (pack and unpack). From the latest documentation on perldoc/IPC::SharedMem/SYNOPSIS is shown as an example:

$shm->write(pack("S", 4711), 2, 2);

I assumed that pack from the example above is the core pack. I also checked the source code from CPAN Source and I was unable to find the pack and unpack methods until I saw:

sub stat { my $self = shift; my $data = ''; shmctl $self->id, IPC_STAT, $data or return undef; IPC::SharedMem::stat->new->unpack($data); }

Thanks again for clearing things out. BR / Thanos.

Seeking for Perl wisdom...on the process of learning...not there...yet!