There was one e.e. cummings in the world. You're not him. Use mixed
case. Whitespace is our friend.
> I was using Net::FTP to do something, and it wasn't working because
> I couldn't get a recursive listing of the files I wanted to
> download, like you would with File::Find. Well, I found
> Net::FTP::Recursive and that did the trick, but after I installed it
> and changed my use Net::FTP to use Net::FTP::Recursive, I forgot to
> change my call to it, i.e: I had
> my $ftp = Net::FTP->new($server, Debug => 3) or die "Can't connect: [EMAIL
> PROTECTED]";
> instead of
> my $ftp = Net::FTP::Recursive->new($server, Debug => 3) or die "Can't
> connect: [EMAIL PROTECTED]";
> rget is a method included in Net::FTP::Recursive but not in
> Net::FTP. so with the line
> my $ftp = Net::FTP->new($server, Debug => 3) or die "Can't connect: [EMAIL
> PROTECTED]";
> when I would call $ftp->rget() I would get an error that said
> basically there is no rget method with Net::FTP.
> so my question is this: by using Net::FTP::Recursive, do you get all
> of the methods (not really comfortable with OO programming yet so I
> hope I stated that right) included with Net::FTP?
If Net::FTP::Recursive inherits from Net::FTP and is well behaved (and
yes, it does, and yes it is) then it will inherit all of the methods of
the parent class.
Note that a landmine lurks here -- One cannot assume that
Some::Random::Class::Variant
inherits from
Some::Random::Class
just because of the similarty in names -- inheritance in Perl is
implemented through a package-global called @__PACKAGE__::ISA.
Reading the fine manual will usually say if something inherits from
something else. Failing that an examination of the source will
elucidate.
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Lawrence Statton - [EMAIL PROTECTED] s/aba/c/g
Computer software consists of only two components: ones and
zeros, in roughly equal proportions. All that is required is to
sort them into the correct order.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>