> -----Original Message-----
> From: Jerry Rocteur [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 02, 2006 4:59 AM
> To: beginners@perl.org
> Subject: Multiple line parameters in parameter file
> 
> Hi,
> 
> I've just searched the web and tried the archives but that is down at
the
> moment.
> 
> I'm reading a parameter file:
> 
> PARAM=value
> PARAM1=value2
> 
> Etc. and this works great, but all of a sudden...I need multiple
lines..
> 
> For example:
> 
> login=logname
> password=password
> ftpfiles="/var/opt/file1, /var/opt/file2, /var/opt/file3
>           /var/opt/file4, /var/opt/file5 f/var/opt/ile6,
>           /var/opt/file7"
> oracleftpport=2111
> 
> 
> The file names are relative and so quite long so probably better to
put
> one on each line ?
> 
> I've thought of slurping in paragraph mode but I'm really stuck for a
good
> way to do it..
> 
> Perhaps a module ?
> 
> Any ideas ?

Check out Config::Simple.  Use it to read config files in the format:

[header]
param = 'test'
param2 = one, two

http://search.cpan.org/~sherzodr/Config-Simple-4.58/Simple.pm

ry

> 
> Thanks in advance,
> 
> 
> --
>       _        Jerry Rocteur    [EMAIL PROTECTED]
>     _|_|_                   http://www.rocteur.cc
>     (0 0)                   MSN [EMAIL PROTECTED]
> ooO--(_)--Ooo      Jabber [EMAIL PROTECTED]
> _________________________________________________
> 
> 
> 
> 
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
> 


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to