in reply to Re: Pushing anon hash on to HoA structure giving Use of uninitialized value in hash element error using warnings (style issues)
in thread Pushing anon hash on to HoA structure giving Use of uninitialized value in hash element error using warnings

Thanks for the tips on the ternary. I had tried that but obviously I had done something wrong and went with the if-else instead. I prefer the ternary as well when I can as I think it's easier to read.

I see your point as far as $token->[0] eq "S". I'm trying to see if the S token has an id="year" in it. If it didn't have the id="year" in it, I wanted it to drop through, but I see now how I can rewrite that.

As far as the abuse of split, yes that was going to get reworked. :) This is really the first time I've dealt with a complex data structure so that was my primary objective.

There is no emoticon for what I'm feeling now.
  • Comment on Re^2: Pushing anon hash on to HoA structure giving Use of uninitialized value in hash element error using warnings (style issues)
  • Download Code