Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Perl gods: Help needed



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.




BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org