Quoting Leon Brocard ([EMAIL PROTECTED]): > Kris Boulez sent the following bits through the ether: > > > I'm looking for a way to parse (read in) a PHP file and gave the PHP > > variables available as Perl variables. > > If you could post an example couple of lines from the config file then > it'd be easier to tell you how to go about it. > [ I will respond here, thanks to all the other people that replied ]
As there seems to be no straight forward solution (writing everything out via web page and parsing this with LWP sounds pretty convoluted), I'll just parse the php file myself. The config file will only be edited by me and the part I'm intrested in contains only simple variable and constant definitions. Shouldn't be too hard. Thanks