POE::Component::Net::FTPPOE::Component::Net::FTP is a non-blocking wrapper around Net::FTP. | |
Download |
POE::Component::Net::FTP Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Zoffix Znet
- Publisher web site:
- http://search.cpan.org/~zoffix/
POE::Component::Net::FTP Tags
POE::Component::Net::FTP Description
POE::Component::Net::FTP is a non-blocking wrapper around Net::FTP. POE::Component::Net::FTP is a non-blocking wrapper around Net::FTP.SYNOPSIS use strict; use warnings; use POE qw(Component::Net::FTP); die "Usage: perl ftp.pl n" unless @ARGV == 4; my ( $Host, $Login, $Pass, $File ) = @ARGV; my $poco = POE::Component::Net::FTP->spawn; POE::Session->create( package_states => , ], ); $poe_kernel->run; sub _start { $poco->process( { event => 'response', commands => }, { login => }, { put => }, ], } ); } sub response { my $in_ref = $_; if ( $in_ref->{is_error} ) { print "Failed on $in_ref->{is_error} command: " . "$in_ref->{last_error}n"; } else { print "Success!n"; } $poco->shutdown; }Using event based interface is also possible. Requirements: · Perl
POE::Component::Net::FTP Related Software