in reply to Re^2: novice with hash/data file question
in thread noob with hash/data file question
It will fulfill all your needs :)open(FILE, '<', 'data.txt'); my %result = map {split /\|/; ($_[0] => $_[1])} <FILE>; close(FILE);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: novice with hash/data file question
by johngg (Canon) on Sep 02, 2008 at 14:12 UTC | |
|
Re^4: novice with hash/data file question
by jwkrahn (Abbot) on Sep 02, 2008 at 12:51 UTC |