On 28/05/06, Juerd <[EMAIL PROTECTED]> wrote:
Michael Mathews skribis 2006-05-28 15:46 (+0100):
> Also is the operator "~~" or "=~"? I've found contradictory references
> to both in books and online.
It was "=~" in Perl 5, but it's "~~" in Perl 6. Please report
occurrences of "=~" to the respective authors.
Well, one example would be Damian's Exegesis 5 at
http://dev.perl.org/perl6/doc/design/exe/E05.html which I thought was
an authorative word on the subject. Can you give me a link to working
examples of regex in pugs please?
I did try $foo ~~ s/foo/bar/; of course, but that results in an even
more ominous sounding error:
*** Cannot parse PGE: foo
*** Error: does not exist
fooSegmentation fault
And, as an incentive, I'm offering 1000 Colombian Pesos to the first
person to author a working example of s/+/ /g; in Perl 6*.
--michael
*offer will not actually be honoured.