D
David Squire
Lukas said:but to the other question: does Perl initialize all value-fields to
zero, primarily for hash-value fields?
prompt> perl -e '$test{key}++; print $test{key}'
1
Lukas said:but to the other question: does Perl initialize all value-fields to
zero, primarily for hash-value fields?
Lukas Ruf said:perl does not emit any warning anymore -- did you refer to my
mistyping of
$hsh{$key} += @record{$index};
instead of
$hsh{$key} += @record[$index];
Not that I want to be redundant, but the above is exactly why the
posting guidelines suggest copy-and-pasting your code instead of
retyping it. It helps avoid errors such as these.
It also helps avoid "read the posting guidelines" responses.![]()
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.