5 Oct
2010
5 Oct
'10
12:46 p.m.
Le 05/10/2010 14:32, P Kishor a écrit :
and, I get the following runtime error
Can't call method "SUPER::opts" on an undefined value at /Users/punkish/Sites/app/lib/app/app1.pm line 16.
The way you call the opts method matters: get '/' => sub { "forum opts : ".to_yaml(FooApp::Forum->opts()); }; If you don't call it that way (Class->method) $self is undef, hence your error. -- Alexis Sukrieh