Tom Christiansen wrote: > > >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(); Fine. I understand that. Surprise! I'm not an idiot. But, for "crying out loud!", then what the hell do we need "scalar" for? You can accomplish the same thing like this: $num = @array; print "Got $num elements"; "scalar" makes things easy. So does something like "list". This $stuff = () = $r =~ /crap/shit/; Doesn't make anything easy. > Perl does context. Perl does *IMPLICIT* context. Cope. Great. Then let's drop "scalar" to be consistent. This can be done completely implicitly, right? -Nate
- Re: RFC 110 (v3) counting matches Nathan Wiger
- Re: RFC 110 (v3) counting matches Bart Lateur
- Re: RFC 110 (v3) counting matches Tom Christiansen
- Re: RFC 110 (v3) counting matches Bart Lateur
- Re: RFC 110 (v3) counting matches Tom Christiansen
- Re: RFC 110 (v3) counting matches Bart Lateur
- Re: RFC 110 (v3) counting matches Mark-Jason Dominus
- Re: RFC 110 (v3) counting matches Tom Christiansen
- Re: RFC 110 (v3) counting matches Tom Christiansen
- Re: RFC 110 (v3) counting matches Tom Christiansen
- Re: RFC 110 (v3) counting matches Nathan Wiger
- Re: RFC 110 (v3) counting matches Tom Christiansen
- Re: RFC 110 (v3) counting matches Mark-Jason Dominus
- Re: RFC 110 (v3) counting matches Richard Proctor
- Re: RFC 110 (v3) counting matches Philip Newton
- Re: RFC 110 (v3) counting matches Mark-Jason Dominus
- Re: RFC 110 (v3) counting matches Nathan Wiger
- Re: RFC 110 (v3) counting matches Tom Christiansen
- Re: RFC 110 (v3) counting matches Chaim Frenkel
- Re: RFC 110 (v3) counting matches Jonathan Scott Duff
- Re: RFC 110 (v3) counting matches Joe McMahon