- or download this
sub new {
my ($class, %args) = @_;
...
}
return $self;
}
- or download this
sub get {
my $self = shift;
$self->{_mech}->get(@_);
}
- or download this
for my $func (qw(get click ...)) {
no strict 'refs';
...
$self->{_mech}->$func(@_);
};
}
- or download this
use Moose;
has _mech => ( is => 'rw', handles => [ qw(get click ...) ] );