-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Are you just trying to show that you can screw up the syntax, or are
you forgetting about associativity?
perl -le 'print("*"x10)."\n"'
Are you just trying to show that you can misuse parentheses, or have you
forgotten the "if it looks like a function call, it is a function call"
rule?
I'll assume you were trying to make the former point, but your
observation doesn't make his response wrong, and he never claimed that
it would work as you wrote it.
The way I wrote it was an exact copy, modulo whitespace, of what Mothra
posted. I happen to have respect for Mothra, based on his or her posts
here, which is why I didn't post a flame, and why I felt that nothing
more than "careful" plus an error dump was needed for Mothra to
understand that s/he should have known better than to post a quick
solution without making sure that it was correct.
However, I made the mistake of thinking that whitespace didn't matter to
Mothra's solution. It does. Not because of precedence, not because of
associativity, but because "10." is interpreted as a number, rather than
a number plus the concatenation operator. My mistake, not Mothra's; mea
culpa. But I didn't think that my mistake warranted a flame.
- --
Eric
$_ = reverse sort $ /. r , qw p ekca lre uJ reh
ts p , map $ _. $ " , qw e p h tona e and print
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <
http://www.pgp.com>
iQA/AwUBPzRB8WPeouIeTNHoEQKduQCg+THPa8sTZ0puBtlJ0J6WsHJ8imsAoIuf
3KWqgyDx/pe2UpejwcivLX4l
=AGte
-----END PGP SIGNATURE-----