El codigo
Código
#!usr/bin/perl #FTP Manager 0.2 #Coded By Doddy H use Net::FTP; &head; if ( my $socket = Net::FTP->new($ftp) ) { if ( $socket->login( $user, $pass ) ) { menu: if ( $cmd =~ /help/ ) { [+] Commands [++] help : show information [++] cd : change directory <dir> [++] dir : list a directory [++] pwd : directory [++] size : size of the a file <file> [++] put : upload a file <file> [++] get : download a file <file> [++] cdup : change dir <dir> ); } if ( $cmd eq "dir" ) { if ( my @files = $socket->dir() ) { my @files_found; my @dirs_found; for my $fil (@files) { my ( $dir, $file ) = @to[ 0, 8 ]; if ( $dir =~ /^d/ ) { } else { } } for my $dires (@dirs_found) { } for my $filex (@files_found) { } } else { } } if ( $cmd =~ /pwd/ig ) { } if ( $cmd =~ /cd (.*)/ig ) { if ( $socket->cwd($1) ) { } else { } } if ( $cmd =~ /cdup/ig ) { if ( my $dir = $socket->cdup() ) { } else { } } if ( $cmd =~ /del (.*)/ig ) { if ( $socket->delete($1) ) { } else { } } if ( $cmd =~ /rename (.*) (.*)/ig ) { if ( $socket->rename( $1, $2 ) ) { } else { } } if ( $cmd =~ /mkdir (.*)/ig ) { if ( $socket->mkdir($1) ) { } else { } } if ( $cmd =~ /rmdir (.*)/ig ) { if ( $socket->rmdir($1) ) { } else { } } if ( $cmd =~ /size (.*)/ig ) { } if ( $cmd =~ /exit/ig ) { copyright(); } if ( $cmd =~ /get (.*)/ig ) { if ( $socket->get($1) ) { } else { } } if ( $cmd =~ /put (.*)/ig ) { if ( $socket->put($1) ) { } else { } } goto menu; } else { } } else { } sub head { } sub copyright { } # The End ?