<html><head></head><body>Any language that makes me use a plus sign for string concat... *ducks*<br clear="none">
<br clear="none">
--Tommy Butler<br clear="none"><br clear="none"><div class="gmail_quote">On Sep 11, 2014, "Patrick R. Michaud" <pmichaud@pobox.com> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k10mail">On Thu, Sep 11, 2014 at 02:42:16PM -0500, Robert Flach wrote:<br clear="none"></pre><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;">Yet another way to do it. Interesting.  I would have assumed that<br clear="none">the unary + would have caused a numeric contextual evaluation of the<br clear="none">contents of the parens, causing the string prints to print zero<br clear="none">instead, but it works a charm.  Nice</blockquote><br clear="none">Coming from the Perl 6 world, it feels SO WRONG to me that a<br clear="none">numeric context operator isn't producing a numeric result.  It's<br clear="none">one of those "OMG special case" exceptions that drive newbie <br clear="none">Perl 5 programmers nuts, and definitely doesn't follow the <br clear="none">principle of least astonishment.<br clear="none"><br clear="none">So yes, it works, but it's not something I'd encourage or want to<br
clear="none">see in code.  :)<br clear="none"><br clear="none">FWIW, Perl 6 avoids this altogether by using whitespace to know<br clear="none">when parens are part of the subroutine call syntax:<br clear="none"><br clear="none">print(2+3) * 7         # parens belong to "print" call<br clear="none">print (2+3) * 7        # parens don't belong to the "print" call<br clear="none"><br clear="none">Pm<br clear="none"><hr><br clear="none">Dfw-pm mailing list<br clear="none">Dfw-pm@pm.org<br clear="none"><a shape="rect" href="http://mail.pm.org/mailman/listinfo/dfw-pm">http://mail.pm.org/mailman/listinfo/dfw-pm</a><br clear="none"></blockquote></div><br clear="none">-- Sent with <b><a shape="rect" href="https://play.google.com/store/apps/details?id=com.onegravity.k10.pro2">K-@ Mail</a></b> - the evolution of emailing.</body></html>