in reply to Re^4: Filtering very large files using Tie::File
in thread Filtering very large files using Tie::File
the perlop page says nothing about adding new records to a hash with ++This commonly seen Perl idiom works due to Autovivification (the automatic creation of a variable reference when an undefined value is dereferenced). Autovivification is unique to Perl; in other languages you'd need to create the item as a separate operation before incrementing it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Filtering very large files using Tie::File
by Corion (Patriarch) on Nov 26, 2010 at 20:56 UTC | |
by elef (Friar) on Nov 26, 2010 at 21:38 UTC | |
by ikegami (Patriarch) on Nov 27, 2010 at 21:28 UTC |