W
WelkinConsulting
I have a question either about OO in general, or its implementation in
Perl--I'm not sure which because I don't know enough.
I've created the module Net::Browser::InternetExplorer. It drives an
IE instance.
I want to eventually create modules for driving other browsers--like
Net::Browser::FireFox . I would like to be able to say, therefore:
my $browser = Net::Browser->new( flavor => 'InternetExplorer', $URL );
or
my $browser = Net::Browser->new( flavor => 'FireFox', $URL );
I've tried to figure out myself how to implement this, but I don't even
know which OO concept or catchphrase I should be looking for! Thanks
in advance for any references or examples.
Andrew
Perl--I'm not sure which because I don't know enough.
I've created the module Net::Browser::InternetExplorer. It drives an
IE instance.
I want to eventually create modules for driving other browsers--like
Net::Browser::FireFox . I would like to be able to say, therefore:
my $browser = Net::Browser->new( flavor => 'InternetExplorer', $URL );
or
my $browser = Net::Browser->new( flavor => 'FireFox', $URL );
I've tried to figure out myself how to implement this, but I don't even
know which OO concept or catchphrase I should be looking for! Thanks
in advance for any references or examples.
Andrew