On Tuesday, June 11, 2002, at 06:39 , Anders Holm wrote: [..] > 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 > > There are other parameters before and after this entry in the > configuration > file as well. I want to grab these values and put them in an array, so I > can > later use them for additional usage. I'm just not getting this anywhere. > And > I don't even have a code snippet to show, since I'm not sure how to > iterate > over these lines either. NB. there is a newline after each \, hence why it > doesn't just read them all in as one line... :( [..] http://www.wetware.com/drieux/pbl/perlTrick/AnotherConfigReader.txt
here I parse them all - let God Choose the loosers, and if you want the array with that specific key then you would ask for @{$config{'Parameter'}} enjoy... ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]