Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 2nd, 2012  |  syntax: None  |  size: 0.32 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # /home/mmcleric/git/foo-app/lib/Foo/Service.pm
  2.  
  3. package Foo::Service;
  4.  
  5. use parent qw(Ubic::Service::Plack);
  6. sub new {
  7.     my $class = shift;
  8.     my $module_path = $INC{"Foo/Service.pm"};
  9.     my $path = ...; # more code to calculate the real path
  10.     my $self = $class->SUPER::new(
  11.         ...
  12.     );
  13. }
  14.  
  15. return __PACKAGE__->new;