Egg - WEB application framework.
First of all, please make the project.
And, please setup as you answer the WEB request.
Please see Egg::Release for details.
A local script and the operation such as cron can be united as follows.
#!/usr/loca/bin/perl -w use strict; use [MYPROJECT]; my $e= [MYPROJECT]->new; $e->method ... ... ban, bo, bo, bo, bon.
However, I think that the error occurs only because some methods are for WEB requests.
It explains the environment variable more in detail in Egg::Release.
It is called from the controller of the project directly. Only the Request object is accepted to the argument. It is undefined and good usually.
my $e= [MYPROJECT]->new;
The project name under operation is returned. It is the same as ref($e).
The HASH reference of the configuration is returned.
The list of the loaded plugin is returned by the ARRAY reference.
The set flag is settled by the HASH reference and it returns it.
The value of the specified flag is returned.
The object for the character-code processing is returned.
$e->euc_conv, $e->sjis_conv, $e->utf8_conv
When the argument is not given, the dispath object made from 'create_dispatch' is returned. When the argument is given, the class name modified with '[MYPROJECT]::D' is returned.
# [MYPROJECT]::D::Hoge->foo is called. $e->d('Hoge')->foo($e);
The Egg::Request object is returned.
The Egg::Response object is returned.
The object of specified MODEL is returned.
The VIEW object to output contents is returned.
It is a flag whether operate by debug mode.
It is an accessor to $e->stash.
The ARRAY reference into which the request passing is divided by/is returned.
It is a preservation place to share data.
When [KEY] is given, the value of $e->stash->{[KEY]} is returned.
When [VALUE] is given, the value is set in $e->stash->{[KEY]}.
It reports on the completion of processing. Please give an appropriate response code.
When you find a bug, please email me (<mizuno@bomcity.com>) with a light heart.
Egg::Release, Egg::Engine, Egg::Model, Egg::View, Egg::Request, Egg::Response, Egg::D::Stand, Egg::Debug::Base,
Masatoshi Mizuno, <mizuno@bomcity.com>
Copyright (C) 2006 Bee Flag, Corp. <http://egg.bomcity.com/>, All Rights Reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.
To install Egg::Release, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Egg::Release
CPAN shell
perl -MCPAN -e shell install Egg::Release
For more information on module installation, please visit the detailed CPAN module installation guide.