Perl gods: Help needed

Joshua Pollak pardsbane at offthehill.org
Mon Jan 19 19:23:27 EST 2004


Heya,

I've got a config file of the format:

OPTION = foo1 \
                    foo2 \
                    foo3

Of course there is other stuff in the config file that I don't care 
about. I want to stop reading at the end of the first line after OPTION 
that doesn't end in a '\'.

And I want to parse that into a list I can iterate over in perl using a 
while loop:

while(@options)
{
   print $_;
}

What's the best way to do this?

For those who are curious, I need to parse a Qt .pro file for a custom 
build system.

-- 
Bush/Cheney '04:
Thanks for not paying attention.



More information about the Discuss mailing list