I’m looping through a file line by line, it has key->value pair that I’m then outputting to xml. How can I do a check to make sure I haven’t already outputted this key/value pair?
In C# I would do it so easy by inserting into dictionary then just using .Contains(), any tips in perl?
I’m looping through a file line by line, it has key->value pair that I’m
Share
Perl has the
definedandexistskeywords that operate on hash elements.For most purposes, they do the same thing. The one subtle difference is when the hash value is the special “undefined” value: