in reply to Re: Ignoring values in a hash slice assignment
in thread Ignoring values in a hash slice assignment

Thanks, grep (and dragonchild who made a similar suggestion).

Using an array slice on the split was one of the other ways I considered, but my actual field list is much longer (over 70 fields in all), and I didn't want to maintain two long lists.

I could generate the second list programmatically, but I figured that would be even more complicated that my two solutions. (Of course, it is very possible that I was wrong.)

Impossible Robot
  • Comment on Re: Re: Ignoring values in a hash slice assignment

Replies are listed 'Best First'.
Re: Re: Re: Ignoring values in a hash slice assignment
by grep (Monsignor) on Feb 28, 2002 at 22:17 UTC
    Actually I was going to add 'creating the list programmatically' as an additional suggestion. The great thing is, if you do it right, your data structure is factored out to 1 place, so you only have to make changes in 1 place as you make changes. I think if you follow this you'll be happier in the long run.

    grep
    grep> grep clue /home/users/*