in reply to Can't install IPC:Shareable

Changing line 455

$#{@{$self->{_data}}} = $n - 1;

into

$#{$self->{_data}} = $n - 1;

fixes the issue for me.

(modify blib/lib/IPC/Sharable.pm in the build directory before running the tests with make test)

Replies are listed 'Best First'.
Re^2: Can't install IPC:Shareable
by ikegami (Patriarch) on Dec 29, 2010 at 23:25 UTC

    This problem was reported two years ago. It looks like this module isn't being maintained.

    Some background for those interested:

    There was a bug in Perl such that

    $#{ @array }

    was interpreted as

    $#{ \@array }
    instead of
    $#{ scalar(@array) }

    IPC::Shareable's test relies on this bug, but it was fixed in Perl 5.10. Note the lack of 5.10.x and 5.12.x passing results.

      This problem was reported two years ago. It looks like this module isn't being maintained.

      Looks like module hasn't been updated since 2001

        I made the same change and manually compiled and installed Shared IPC module and it worked. I guess for perl 5.8 and above we need to make this change. I was using perl 5.12

        Thanks