Which ActivePerl version were you using?

I personally believe:

C:\temp>perl -v This is perl, v5.10.0 built for MSWin32-x86-multi-thread
I had no problems build and testing autobox with dmake and MinGW using the latest ActivePerl 5.8 and 5.10 release.

I'm using nmake but that shouldn't make a difference, should it?

Note that you can also install autobox from the new beta PPM repositories.

Let's see...

C:\temp>ppm repo add http://ppm.activestate.com/beta/MSWin32-x86/5.10/ +1000/ "as-beta" Downloading ActiveState Package Repository packlist...not modified Downloading uwinnipeg packlist...not modified Downloading trouchelle packlist...not modified Downloading bribes packlist...not modified Downloading WxPerl packlist...not modified Downloading as-beta packlist...done Updating as-beta database...done Repo 6 added. C:\temp>ppm s autobox Downloading ActiveState Package Repository packlist...not modified 1: autobox call methods on native types Version: 2.55 Released: 2008-05-25 Author: chocolateboy <chocolate.boy@email.com> Provide: autobox version 2.55 Require: Scope::Guard version 0.03 or better Repo: as-beta CPAN: http://search.cpan.org/dist/autobox-2.55/ C:\temp>ppm i 1 Downloading autobox-2.55...done Unpacking autobox-2.55...done Generating HTML for autobox-2.55...done Updating files in site area...done 8 files installed C:\temp>cat Array\Extract.pm # -*- Perl -*- use strict; use warnings; use 5.010; package Array::Extract; use base qw/autobox/; sub import { my $class = shift; $class->SUPER::import(ARRAY => 'Array::Extract::Work'); } package Array::Extract::Work; sub extract { my $aref=shift; my @out=@{$aref}[@_]; @$aref=@{$aref}[grep !($_ ~~ @_) => 0..$#$aref]; @out; } 1; __END__ C:\temp>cat extract.pl #!/usr/bin/perl use strict; use warnings; use Array::Extract; use Data::Dumper; my @x0 = my @x = 'a'..'g'; my @y = @x->extract(2,3,-8); print Dumper \(@x0, @y, @x); __END__ C:\temp>extract.pl $VAR1 = [ 'a', 'b', 'c', 'd', 'e', 'f', 'g' ]; $VAR2 = [ 'c', 'd', undef ]; $VAR3 = [ 'a', 'b', 'e', 'f', 'g' ];

OMFG! It works!! You have my eternal gratitude!

I know I could be bashed harshly for saying this, but it's one of those occasions I would really like PM to have a social-network-like "status" update (a là Twitter) and then I would write there how happy I am for having eventually solved this problem: and indeed I would probably be bashed, if I said so in PMD rather than here; in fact that's the reason I'm refraining to do so, however tempted I am...

Incidentally, now that you brought the AS beta repositories to my attention, I wonder whether they should be added to the PPM Repositories page of the Win32 Perl Wiki.

--
If you can't understand the incipit, then please check the IPB Campaign.

In reply to Re^2: Seeking help for compiling autobox with MinGW for ActivePerl under Windows by blazar
in thread Seeking help for compiling autobox with MinGW for ActivePerl under Windows by blazar

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.