Re: Getting content of a configuration file

2002-05-30 Thread Todd Wade
"Sven" <[EMAIL PROTECTED]> wrote in message 027901c204e8$fa475da0$14e307d5@brian">news:027901c204e8$fa475da0$14e307d5@brian... ... > $context = $q->param(context); > > require "conf.txt"; > open(READ, "conf.txt") or die "Error opening file: conf.txt, Errorcode: > $!\n"; > close(READ); I dont un

Re: Getting content of a configuration file

2002-05-28 Thread John Brooking
Octavian, I'd be surprised if it's not possible to generate variables of specific names on the fly in Perl, but I personally don't know how, and the syntax might be kind of weird. At the expense of a slightly more complicated data structure, I *can* give you some quick code that is hopefully s

Re: Getting content of a configuration file

2002-05-26 Thread Sven
Hi Teddy, you may try the following: Write into your conf-file: %assembly = ( title=> 'Assembly language page', description => 'Download free manuals and tutorials for assembly language', . ); %basic = ( title=> 'Basic and Visual Basic page', description