Re your use of a hash and your desire to omit the "first" element: You should understand that the order of a hash's elements is not defined; that is, the order in which you create the elements will be the order in which the elements are processed only by chance, absent use of sort or a Tie::... modules.