ryo0ka has asked for the wisdom of the Perl Monks concerning the following question:
I think the get routine should work just like the base class' one, but it never die when it fails GETting. When I call the class and use the get subroutine while the Internet access is out, it just pass through the GETting error without saying anything and $mech->title produces "Uninitialized..." error. It works perfectly when the access is not out. Does anybody know why it happens? Thank you so much!package MyMech; use base qw(WWW::Mechanize); sub new { my $class = shift or die $!; my $self = $class->SUPER::new; return bless $self, $class; } sub get { my $self = shift; $self->SUPER::get(@_); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Question about inheritance of WWW::Mechanize
by runrig (Abbot) on May 22, 2013 at 17:35 UTC | |
by ryo0ka (Novice) on May 22, 2013 at 19:25 UTC | |
|
Re: Question about inheritance of WWW::Mechanize
by MidLifeXis (Monsignor) on May 22, 2013 at 17:51 UTC |