in reply to Re^3: Perl - Unique Numbers
in thread Perl - Unique Numbers
The main difference between his code and yours is that, if a number is selected three times, yours will have a value of 1 in the hash for that key, while his will have a value of 3. But, since the values are never used for anything (you just output the keys and ignore the values), it doesn't matter either way.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Perl - Unique Numbers
by flexvault (Monsignor) on Oct 18, 2015 at 15:28 UTC | |
by johngg (Canon) on Oct 18, 2015 at 22:46 UTC | |
by dsheroh (Monsignor) on Oct 19, 2015 at 12:06 UTC |