Re: Multiple line parameters in parameter file

2006-09-29 Thread Roberto Etcheverry
This can be made with a regular expression: #!/usr/bin/perl #vim: set shiftwidth=2 autoindent showmatch syntax=perl use strict; use warnings; # all lines following __DATA__ go into $s my $s; { local $/ = undef; $s = ; } my %vars; # match 1 or more alphabetics chars followed by an '=' followed

Re: Multiple line parameters in parameter file

2006-08-02 Thread Rob Dixon
Jerry Rocteur wrote: > > On Wed, Aug 02, 2006 at 12:15:23PM +0100, Rob Dixon wrote: > >>Jerry Rocteur wrote: >> >>Hi Jerry >> >>I started writing this in a single pass, but its a lot easier if you take >>two passes - effectively converting from multi-line parameters to single-line >>ones. I assume

RE: Multiple line parameters in parameter file

2006-08-02 Thread Ryan Frantz
> -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.

Re: Multiple line parameters in parameter file

2006-08-02 Thread Rob Dixon
Jerry Rocteur wrote: > > I've just searched the web and tried the archives but I'm not in luck > > 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 > ftp