in reply to Re: Lost hash values
in thread Lost hash values

Here is the snippet of the input file. If x!~/2005, i want to do nothing. Also if x=~/time/, i want to store values in the key registered with match x=~/2005/ in the previous line(of the input file). The value of the $first key is being printed from the same hash which i use to print from at the end. Thanks for the chomping suggestion.
------------------------------------------ ------------------------------------------ Thu May 16 13:15:11 EDT 2005 72 bytes from myhost.xx.yyy.com (168.112.50.50): icmp_seq=0. time=0. m +s ----myhost.xx.yyy.com PING Statistics---- 1 packets transmitted, 1 packets received, 0% packet loss round-trip (ms) min/avg/max = 0/0/0 ------------------------------------------ ------------------------------------------