Created
December 11, 2010 01:13
-
-
Save gslin/737057 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use Tatsumaki::Application; | |
use strict; | |
use warnings; | |
Tatsumaki::Application->new([ | |
'/' => 'Controller::Main', | |
]); | |
__END__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use parent qw/Tatsumaki::Handler/; | |
use strict; | |
use warnings; | |
sub get { | |
my $self = shift; | |
$self->write('It is Main Controller.'); | |
} | |
1; |
Author
gslin
commented
Dec 11, 2010
Error msg:
Can't locate object method "new" via package "Controller::Main" (perhaps you forgot to load "Controller::Main"?) at /usr/local/share/perl/5.10.1/Tatsumaki/Application.pm line 55, <> line 11.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment