http://www.pobox.com/~gbarr/libnet/
-
-
=head2 How to contribute to this document
You may mail corrections, additions, and suggestions to me
gbarr@pobox.com.
-
=head1 Author and Copyright Information
Copyright (c) 1997-1998 Graham Barr. All rights reserved.
=head1 Obtaining and installing libnet
-=over 4
-
=head2 What is libnet ?
libnet is a collection of perl5 modules which all related to network
in
http://www.perl.com/CPAN/modules/by-module/Net/
-
+
The latest release and information is also avaliable on the libnet web page
at
http://www.pobox.com/~gbarr/libnet/
-=back
-
=head1 Using Net::FTP
-=over
-
=head2 How do I download files from a FTP server ?
An example taken from an article posted to comp.lang.perl.misc
sub mput {
my($ftp,$pattern) = @_;
- foreach my $file (<$pattern>) {
+ foreach my $file (glob($pattern)) {
$ftp->put($file) or warn $ftp->message;
}
}
}
-=back
-
=head1 Using Net::SMTP
-=over
-
=head2 Why can't the part of an Email address after the @ be used as the hostname ?
The part of an Email address which follows the @ is not necessarily a hostname,
This command will only fail if you pass it an address in a domain the
the server directly delivers for, and that address does not exist.
-=back
-
=head1 Debugging scripts
-=over
-
=head2 How can I debug my scripts that use Net::* modules ?
Most of the libnet client classes allow options to be passed to the
received back.
#!/your/path/to/perl
-
+
use Net::FTP;
-
+
my $ftp = new Net::FTP($host, Debug => 1);
$ftp->login('gbarr','password');
$ftp->quit;
going to the server. The remainder of the line is the command
being sent or responce being received.
-=back
-
=head1 AUTHOR AND COPYRIGHT
Copyright (c) 1997 Graham Barr.
All rights reserved.
+
+=for html <hr>
+
+I<$Id: //depot/libnet/Net/libnetFAQ.pod#4 $>
+