Advertisement
Guest User

Untitled

a guest
Nov 11th, 2016
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. package App::Controller::Setup;
  2. use Mojo::Base 'Mojolicious::Controller';
  3. use Mojo::Base 'App::Sys::Example';
  4.  
  5. ...
  6.  
  7. sub myaction (
  8. my $self = shift;
  9.  
  10. ...
  11.  
  12. my $result = App::Sys::Example->myfunction('hello world');
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19. #App/Sys/Example.pm:
  20. use 'App::Sys::Example';
  21.  
  22. sub myfunction () {
  23.  
  24. my $value = $_;
  25.  
  26. ...
  27.  
  28. }
  29.  
  30. return 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement