RE: [Perl-unix-users] portions of strings

2002-09-19 Thread Henry Wong, ¶À³Ç¼e
Have you tried this module? Config::IniFiles http://search.cpan.org/author/WADG/Config-IniFiles-2.29/IniFiles.pm > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]] > Sent: Thursday, September 19, 2002 4:22 AM > To: [EMAIL PROTECTED] > Subject: [Perl-unix-users

RE: [Perl-unix-users] portions of strings

2002-09-19 Thread Arnold, Craig
Kwabena, Your problem has 2 parts - the first is to load your data file and check for duplicates, and the second is to be able to look for items of interest and retrieve the values. Here's a light-duty example of how to do this using hashes. hth, Craig Arnold =

Re: [Perl-unix-users] portions of strings

2002-09-19 Thread Joseph . Cumming
HI kabana, This is something I do a lot so I wrote a little "utils" package to contain this and other common actions. Here is the subroutine. Pass it the name of the config file, a hash reference and an optinal delimeter. You will get back a hash populated with the details of the config file