Hyper::Context - Context for accessing our configuration
This document describes Hyper::Context 0.01
use Hyper::Context; my $config = Hyper::Context ->new() ->get_config('MyApp::Control::Flow::Web::Shop');
or
package MyApp::Tester; my $config = Hyper::Context->new()->get_config();
Hyper::Context provides access to the context configuration for different sections. Mostly the config sections have the same name as the package where you use them.
Config file name.
my $context = Hyper::Context->new();
Called automatically from Class::Std after object initialization. This method calls the reader for our context config.
$context->get_config('MyClass::Name');
$context->get_config();
Get named configuration section or config for a class/package. If there is no parameter given wie use the caller package name as section name.
version
Class::Std
Hyper::Config::Reader::Context
$Author: ac0v $
$Id: Context.pm 317 2008-02-16 01:52:33Z ac0v $
$Revision: 317 $
$Date: 2008-02-16 02:52:33 +0100 (Sa, 16 Feb 2008) $
$HeadURL: http://svn.hyper-framework.org/Hyper/Hyper/tags/0.05/lib/Hyper/Context.pm $
Andreas Specht <ACID@cpan.org>
<ACID@cpan.org>
Copyright (c) 2007, Andreas Specht <ACID@cpan.org>. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Hyper, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Hyper
CPAN shell
perl -MCPAN -e shell install Hyper
For more information on module installation, please visit the detailed CPAN module installation guide.