On Sat, May 31, 2003 at 01:50:51AM +0200 Kevin Pfeiffer wrote:

> I use a function to return a value:
> "$ENV{HOME}/perl/qotw/qotw13/mb"; which is then assigned to $mb
> 
> But the $ENV{HOME} part is not being interpreted, so this sample:
> 
> my $mb          = get_config('mb', '.get_quiz');
> print "$mb\n";
> exit;
> 
> produces literally: "$ENV{HOME}/perl/qotw/qotw13/mb" instead of:
> /home/pfeiffer/perl/qotw/...

Can you post the (potentially) relevant bits of get_config()? Sounds as
though this function reads in a configuration file and returns the
requested values. Is "$ENV{HOME}/perl/qotw/qotw13/mb" one such line of
this config file? If so, it would be data and not code and you'd have to
eval() it or so.

Tassilo
-- 
$_=q#",}])!JAPH!qq(tsuJ[{@"tnirp}3..0}_$;//::niam/s~=)]3[))_$-3(rellac(=_$({
pam{rekcahbus})(rekcah{lrePbus})(lreP{rehtonabus})!JAPH!qq(rehtona{tsuJbus#;
$_=reverse,s+(?<=sub).+q#q!'"qq.\t$&."'!#+sexisexiixesixeseg;y~\n~~dddd;eval


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to