develooper Front page | perl.perl6.language | Postings from March 2005

Config Variables

Thread Next
From:
Brian Ingerson
Date:
March 3, 2005 09:30
Subject:
Config Variables
Message ID:
20050303173003.GA23824@ttul.org
Hi all,

I'm hacking on pugs. I've added a Config.hs which is generated from the
build system's perl's Config.pm. This allows me to expose the Perl6 magical
variable $?OS.

There are a lot of other config values that seem like they don't really need
their own global. Things like 'privlib' and 'installsitearch'.

How about a config hash %?CONFIG for these.

    %?CONFIG{'privlib'}
    %?CONFIG{'installsitearch'}

Or would %*CONFIG be better?

Cheers, Brian

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About