in reply to Re^2: Passing arguments to WWW::Mechanize::Firefox constructor with Moose
in thread Passing arguments to WWW::Mechanize::Firefox constructor with Moose
OK, wow, thanks for the links and sample code. I will definitely study these closely.
While I have you ear right now, what if I want to override a method in the parent class (WWW::Firefox::Mechanize)? Is delegating, as shown in your first link, still the best option? Here's some code pseudocode to try to convey what I mean:
use WWW::Mechanize::Firefox; has 'bot' => ( is => 'ro', isa => 'WWW::Mechanize::Firefox', ); sub get { my ($self, $url) = @_; $self->bot->get($url, synchronize => 1); }
$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon";
$nysus = $PM . $MCF;
Click here if you love Perl Monks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Passing arguments to WWW::Mechanize::Firefox constructor with Moose
by kcott (Archbishop) on Mar 11, 2016 at 17:13 UTC | |
by nysus (Parson) on Mar 11, 2016 at 17:25 UTC |