Help for this page

Select Code to Download


  1. or download this
    package Foo::Bar::UrlHandler;
    
    ...
    
        return $self;
    }
    
  2. or download this
    my $handler = Foo::Bar::UrlHandler->new(url => 'http://perlmonks.org')
        or do_some_error_handling();
    
  3. or download this
    package Foo::Bar::UrlHandler;
    
    ...
        # Invalid URL?
        return;
    }
    
  4. or download this
    sub new($proto, %config) {
        my $class = ref($proto) || $proto;
    ...
        
        return $self;
    }