Hello good monks, I have come seeking your knowledge.
I'm working on a piece of code and want to repeatedly iterate over a data set efficiently without having to write tons of unnecessary code. Basically what I'm looking to do is to perform a regex operation on only SOME parts of a string but not ones that have already been through that loop (which have been stored to a hash with corresponding values) how could I make a conditional loop so that it only performed the operation on parts that haven't appeared yet? The strings are in the format A:B and are then split by the colon into an array containing A and B, processed, and then A:B and a value are stored to a hash. They proceed to get more complicated in later strings such as A:B:C:D:E where A:B and C:D:E have showed up before and I want to split the group into A:B and C:D:E instead of A B C D E, but I haven't gotten anything like that to work. Yes I have attempted to store the values to the hash with another symbol like |, but the source file I'm working from only has colons and that's all I have to work with. Any help is appreciated!
In reply to Scanning Hashes for Repeated values by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |