Ending Comma [was Re: [Israel.pm] how to read a file to a Hash?]
migo at homemail.com
Sun Jul 11 04:50:58 PDT 2004
On 11 Jul 2004 09:54:49 +0300, Shlomi Fish wrote:
> A terminating comma is perfectly acceptable when specifying a list of
> arguments. This is as opposed to other languages such as C.
This is untrue. In fact, Perl supports the trailing comma because C and
The trailing comma is a must in long enumerations (one per line) if one
wants to get a clean diff output. Like in the Shlomi's modified example:
my %person = (
first_name => 'Yosi',
last_name => 'Steinberg',
phone => '1-800-800-800',
perl -e 'print+chr(64+hex)for+split//,d9b815c07f9b8d1e'
More information about the Perl