in reply to Re^3: help with 2D arrays with perl requested
in thread help with 2D arrays with perl requested

ruzam:

Thanks! That tip will certainly come in handy. Collapsing both keys into one certainly saves a bit of effort.

Major Update: Someone downvoted this, and I suspect that it's because they thought I was sarcastic or because I didn't mention *why* I thought it would save effort. So I'll elaborate a little: In my array version, I had to use those "next if !defined" bits to prevent error messages from printing. By collapsing both keys into one, all those error checks disappear from the code. So the net improvement is: We remove an inner loop (for *each* use!) and we remove the "next" statements (again, for *each* use).

Expecting another downvote at any time now..... 8^)

--roboticus

  • Comment on Re^4: help with 2D arrays with perl requested