pglenski has asked for the wisdom of the Perl Monks concerning the following question:
Then I have this code:%rims = { GROUP=>$string, LNAME=>$string, INITS=>$string, MBRID=>$string, M_DOB=>$string, DEPCD=>$string, P_FNAME=>$string, P_DOB=>$string, P_SEX=>$string, };
while(<IN>) { chomp; @tmp=split(/,/,$_); $key = $tmp[0] . $tmp[6]; $rims{$key} = {GROUP=>$tmp[1],LNAME=>$tmp[2],INITS=>$tmp[3], MBRID=>$tmp[4],M_DOB=>$tmp[5],DEPCD=>$tmp[6], P_FNAME=>$tmp[7],P_DOB=>$tmp[8],P_SEX=>$tmp[9],}; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: data stuctures
by socketdave (Curate) on Sep 23, 2005 at 16:41 UTC | |
|
Re: data stuctures
by ikegami (Patriarch) on Sep 23, 2005 at 17:04 UTC |