| Home
| Calendar
| Mail Lists
| List Archives
| Desktop SIG
| Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings Linux Cafe | Meeting Notes | Linux Links | About BLU |
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.