GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  CGI::APPLICATION::PLUGIN::CONFIG::YAML (3)

.ds Aq ’

NAME

CGI::Application::Plugin::Config::YAML - add Config::YAML support to CGI::Application

CONTENTS

VERSION

This documentation refers to CGI::Application::Plugin::Config::YAML version 0.01

SYNOPSIS



    package My::App;
   
    use CGI::Application::Plugin::Config::YAML;
   
    sub cgiapp_init {
        my $self = shift;
        $self->config_file(ataris.yml);
    }
   
    sub myrunmode{
        my $self = shift;
   
        my $artist_name = $self->config_param(artist_name);
   
        $self->config_param(artist_name => ataris);
   
        my $new_artist_name = $self->config_param(artist_name);
   
        my %data = (cd => So Long, Astoria);
        $self->config_fold(\%data);
   
        my $cd = $self->config_param(cd);
   
        $self->config_read(U2.yml);
   
         .....
    }



DESCRIPTION

This plug-in add Config::YAML support to CGI::Application. The usage of this plug-in is almost the same as CGI::Application::Plugin::Config::Simple. This plug-in can be easily used instead of CGI::Application::Plugin::Config::Simple. This plug-in refers to CGI::Application::Plugin::Config::Simple.

METHOD

    config_file



 $self->config_file(ataris.yml);



YAML file is set. $ENV{CGIAPP_CONFIG_FILE} is used if there is no args.

    config_param



 my $name = $self->config_param(artist_name);



A corresponding value to the argument is returned.



 my $config_hash = $self->config_param();



The entire config structure will be returned as a hash ref.

    config



 $self->config;



This method will return the Config::YAML’s object. A new Config::YAML’s object is made if there is a change in config_file.

    config_fold



    my %data = (cd => So Long, Astoria);
    $self->config_fold(\%data);



Call Config::YAML::fold.

    config_read



 $self->config_read(./U2.yml);



Call Config::YAML::read.

DEPENDENCIES

strict

warnings

CGI::Application

Config::YAML

BUGS AND LIMITATIONS

There are no known bugs in this module. Please report problems to Atsushi Kobayashi (<nekokak@cpan.org>) Patches are welcome.

SEE ALSO

CGI::Application

YAML

Config::YAML

CGI::Application::Plugin::Config::Simple

Thanks TO

Michael Peters (CGI::Application::Plugin::Config::Simple’s AUTHOR)

AUTHOR

Atsushi Kobayashi, <nekokak@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2005 by Atsushi Kobayashi (<nekokak@cpan.org>). All rights reserved.

This library is free software; you can redistribute it and/or modify it
under the same terms as Perl itself. See perlartistic.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 CGI::APPLICATION::PLUGIN::CONFIG::YAML (3) 2005-10-28

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.