Anders Holm wrote at Tue, 11 Jun 2002 15:39:34 +0200:

> Hi folks!
> 
> Well, here's one I'm just not getting to grips with.
> 
> I'm parsing a configuration file for an application, and it has a parameter as such:
> 
> Parameter=Value1 Value2 Value3 \
>               Value4 Value5 Value6 \
>               Value7 Value8

That looks like Java Style.
However, for such configuration files exists a module:
Config::Properties
which will do all the dirty work for you.

I propose a pseudo code like

use Config::Properties;
my $properties = Config::Properties->new();
$properties->load( $fileHandle);
my @values = split ' ' => $properties->getProperty( 'Parameter' );


I also could imagine that there's a more Perlish module solving this problem.
Who knows ?


Cheerio,
Janek

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to