On Aug 19, 2004, at 11:07 AM, Aaron Sherman wrote:

First off, in Perl 6, I *think* that that C<< => >> will enforce a
scalar context (it's a tuple operator, last I recall).

W00t!

Second, in Perl 5 it should not be hard to identify such situations for
warning purposes. C<< => >> may be a synonym for C<,>, but that doesn't
mean that you can maintain some little smidge of state in the op that
tells you that your right hand side should not be and expression that
returns a list of more or less than one element.

Yes, that would be very helpful. I get bit by this all the time myself. But even more helpful would be if C<< => >> enforced a scalar context in Perl 5, too.

Regards,

David

Attachment: smime.p7s
Description: S/MIME cryptographic signature



Reply via email to