Re: Dynamic variables - from INI files ...

2006-08-12 Thread Dr.Ruud
"Mumia W." schreef: > my %ini = split /[ \n=]+/, $data; That would break on an '=' inside a value. -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Dynamic variables - from INI files ...

2006-08-12 Thread Mumia W.
(Re-directed to the list) On 08/12/2006 05:44 AM, [EMAIL PROTECTED] wrote: Hi Mumia, Thanks for your tip, that's a good one ... just need to make some more modifications as below: if ($path =~ m/\Q$ini{"SOURCE_DIR$count"}\E/i) { $TARGET_DIR = $ini{"TARGET_DIR$count"}; } else { $TARGET_DI

Re: Dynamic variables - from INI files ...

2006-08-12 Thread Rob Dixon
[EMAIL PROTECTED] wrote: > > I am writing a Perl script that reads some kind of INI file. I cannot use > Config::INI or install any new modules due to some restriction so am reading > the whole INI text file one line at a time and storing them into an array. > Here are what on my INI files: > > FT

Re: Dynamic variables - from INI files ...

2006-08-11 Thread Mumia W.
On 08/11/2006 09:37 PM, [EMAIL PROTECTED] wrote: Hi, I am writing a Perl script that reads some kind of INI file. I cannot use Config::INI or install any new modules due to some restriction so am reading the whole INI text file one line at a time and storing them into an array. Here are what on