in reply to Re: Re: Splitting a hash
in thread Splitting a hash

Why was my snippet ignoring the data?

The data that you wanted (the separated fields) were in the variables you split them to. You ignored them, perhaps expecting the values within the hash itself to become split. But the original values remained as they were, because split returns a new array of values. It doesn't affect the original.

Replies are listed 'Best First'.
Re: Re^3: Splitting a hash
by sulfericacid (Deacon) on Mar 11, 2003 at 05:16 UTC
    Thanks for your help. I was actually expecting the variables to be defined and used when used in a split. That does make sense now that I think about it. I made new variables ($address1, $address2...) but I only asked to print the hash $dbm{$_} leaving the only part I was looking for in the dust.

    Again, thanks for your help, I really appreciate it.

    "Age is nothing more than an inaccurate number bestowed upon us at birth as just another means for others to judge and classify us"

    sulfericacid