Re: RFC 110 (v3) counting matches

[email protected] (Tom Christiansen)
Newsgroups perl.perl6.language.regex
Message-ID <10174.967569100@chthon>
>While I agree that /l is bad, I think going through the crap of "= () ="
>is even worse. Does it work? Yes. But is it easily usable and fun, even
>for non-experts? No.

Oh, for crying out loud--at some point, you have to stop tossing
rotting fish for the starving ignorant and actually get them to 
LEARN something.  Or let them die of starvation.

Note the difference between

    my $var = func();

and

    my($var) = func();

Those are completely different in that they call func() in scalar
and list contexts.  Why?  Because of hte presence or absence of (),
of course.  If they can't learn that adding () to the LHS of an
assignment makes it list context, then they will be forever miserable.

Perl does context.  Perl does *IMPLICIT* context.  Cope.

--tom
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.