On Apr 4, 3:03 am, wekst...@gmail.com (Wernher Eksteen) wrote: > > Hello Wernher, > > Hi Chris, > > > Rob's code could be reconfigured slightly to do so, but requires a > > different approach. I will paste it below. > > Ok, thanks. > > > One change I made was to make the *values* of %hash1 an array ref as I > > thought this was how the hash was originally constructed. If the value > > for %hash1 was a string as in Rob's hash, the code below could be > > altered slightly to perform the task as well. > > Ah yes, to make the values of %hash1 an array does make more sense.
Actually, I had tried following the thread and it it looked like the code you used from J W Krahn had that information in arrays and not strings. That is actually why I set it up that way. However, if the data is in a string form, the code may be a bit clearer as what is being done is building up strings! Chris -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/