Thanks Bascillios and Marshall. I will check the string as hash key approach
Honestly speaking i did not think of keying my incoming strings in hashes as i was not sure of performance hit when doing an if(exists $storage{"String"}), as if we can generate a unique number from String and then if(exists $storage{uniq number}) should be obviously faster the searching a big string as hash key. But anyways i will try it out
In reply to Re^3: Generating Unique numbers from Unique strings
by rjohn1
in thread Generating Unique numbers from Unique strings
by rjohn1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |