-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
(e-mail address removed) (Jeff Mott) wrote in @posting.google.com:
Since the assignment operator has higher precedence than comma,
shouldn't the following line
my $s = substr "foo", 0, 1;
technically be interpreted as
(my $s = substr "foo"), 0, 1;
?
You would think so, wouldn't you?
However, the commas in the above expressions are not comma operators, they
are operator argument-separator commas.
How to tell the difference? 1. perldoc perlop. 2. experience.
- --
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/AwUBP29TFWPeouIeTNHoEQIrqwCg0r3dUNkGBRiwOSIUdvf2+wEd7XEAnRg+
Lsk8bxH23sGyP1THRokvRVEX
=Igzx
-----END PGP SIGNATURE-----