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
In reply to Re^3: Passing arguments to WWW::Mechanize::Firefox constructor with Moose
by nysus
in thread Passing arguments to WWW::Mechanize::Firefox constructor with Moose
by nysus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |