Hey perl porters & Apache::ASP list:

This parser optimization, released in Apache::ASP 2.11, 
broke Apache::ASP under perl 5.6.1 ( + 5.7.1 I'm guessing 
from a cpan-testers FAIL report )

sub Apache::ASP::ParseHelper {
    ...
    while($$data =~ /(.*?)\<\%(.*?)\%\>/gso) {

putting back in the old code made things work again,
so I'll have to resurrect this in 2.15:

    while($$data =~ s/^(.*?)\<\%(.*?)\%\>//gso) {

This functionality is documented in perldoc perlop,
and seems to no longer work in perl 5.6.1:

           In scalar context, each execution of m//g finds
           the next match, returning TRUE if it matches, and
           FALSE if there is no further match.  The position
           after the last match can be read or set using the
           pos() function; see the pos entry in the perlfunc
           manpage.   A failed match normally resets the
           search position to the beginning of the string,
           but you can avoid that by adding the /c modifier
           (e.g. m//gc).  Modifying the target string also
           resets the search position.

Thanks,

Josh

_________________________________________________________________
Joshua Chamas                           Chamas Enterprises Inc.
NodeWorks <- Web Link Checking          Huntington Beach, CA  USA 
http://www.nodeworks.com                1-714-625-4051

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to