Paul Fisher (rao) wrote,
Paul Fisher
rao

  • Music:
To any Perl hackers out there:

Why does [^\s]* match a sequence of zero or more non-spaces in 5.005, but fails in 5.8.0?

I had to change some code in parrot to get it to build under Red Hat 9.
Specifically, I had to change:
            if ($line =~ m/TEMPLATE\s+([^\s]*)\s*{/) { #}
    to:
            if ($line =~ m/TEMPLATE\s+(\S*)\s*{/) { #}
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic
  • 3 comments