But this can be abbreviated even more ...use My::App; my $app = My::App->new; $app->run;
Now your instance script looks like thissub import { __PACKAGE__->new->run }
use My::App; # yes that's it!
In reply to One line CGI::Application instance script by Arunbear
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |