On Fri, Sep 19, 2003 at 11:49:03AM -0400, Jeff Trawick wrote:
a.k.a. "What should the apxs 2.0 require statement say?"
+
/+\
+
+
+apxs fails to build a module, giving this error message from Perl:
Can't modify stub in list assignment at /tmp/trawick/built/bin/apxs line 600, ne
ar ");"
Line 600 has
597 # the '()=' trick forces list context and the scalar 598 # assignment counts the number of list members (aka number 599 # of matches) then 600 my $cntopen = () = ($before =~ m|^\s*<[^/].*$|mg); 601 my $cntclose = () = ($before =~ m|^\s*</.*$|mg);
Wow. I thought anything older than 5.004 could be considered dead and buried.
Try this: my $cntopen = @{[($before =~ m|^\s*<[^/].*$|mg)]};
Or this: my $cntopen = 0; while ($before =~ m|^\s*<[^/].*$|mg) { $cntopen++; }
thanks for the suggestions :)
the big picture is finding an educated guess at what the require statement in apxs should say
I think it is safe to move it up to 5.004, but if anybody happens to know more info about the failure above then we can make a better guess. I sure don't want to go on an install frenzy to hone in on the right level.
