in reply to Question about new()

Or you can use namespace::alias

use namespace::alias "My::Foo::Bar::Baz", "Baz"; Baz->new(); # My::Foo::Bar::Baz->new() Baz::Quux->something(); # My::Foo::Bar::Baz::Quux->new()

Replies are listed 'Best First'.
Re^2: Question about new()
by sman (Beadle) on Jan 23, 2010 at 01:48 UTC
    After installing this module <namespace::alias> and put this line in my class
    use namespace::alias 'Result::Users';
    My catalyst develop server is supposed to reboot but only display this message :
    Attempting to restart the server
    and pause to go any further.
    Do you know why?