| CGI :: Toepassing :: Plugin :: Config :: Perl Pure Perl Config-bestandsbeheer voor CGI :: Toepassing |
Download nu |
CGI :: Toepassing :: Plugin :: Config :: Perl Rangschikking & Samenvatting
- Vergunning:
- Perl Artistic License
- Naam uitgever:
- Mark Stosberg
- Uitgever website:
- http://search.cpan.org/~mgraham/
CGI :: Toepassing :: Plugin :: Config :: Perl Tags
CGI :: Toepassing :: Plugin :: Config :: Perl Beschrijving
Pure Perl Config-bestandsbeheer voor CGI :: Application CGI :: Toepassing :: Plugin :: config :: PERL is een PERL-module die eenvoudig toegang toevoegt tot een PURE PERL-configuratiebestand naar uw CGI :: Toepassingsprojecten. Luy Loading wordt gebruikt om te voorkomen dat het configuratiebestand wordt geparseerd als er tijdens het verzoek geen configuratievariabelen is geopend, zodat het configuratiebestand niet wordt geparseerd totdat deze daadwerkelijk nodig is. Ik heb bijna een decennium pure perl-configuratie bestanden gebruikt. Werk heel goed. Ik schreef Oorspronkelijk CGI :: Toepassing :: Plugin :: ConfigAuto om alle soorten configuratiebestanden te ondersteunen, maar vond dat ik alleen Perl-gebaseerde configuratiebestanden heb gebruikt. Deze module heeft dezelfde interface als de CONFIGAUTO-plug-in, zonder de optie voor andere indelingen, en het extra afhankelijkheid en resourcebruik dat bij die flexibiliteit wordt geleverd. Synopsis Gebruik CGI :: Toepassing :: Plugin :: config :: PERL 'CFG'; In uw instantie-script: mijn $ app = webApp-> nieuw (params => {cfg_file => 'config.pl'}); $ App-> Run (); in uw aanvraagmodule: sub My_Run_Mode {My $ Self = Shift; # Toegang tot een config-hash-toets direct $ self-> CFG ('veld'); # Return config als hash g = $ self-> CFG; } Vereisten: · Perl
CGI :: Toepassing :: Plugin :: Config :: Perl Gerelateerde software