Net::FTP can do this, is has a "quot"
method to send commands that it doesn't have
specific support for:
use Net::FTP;
my $ftp = Net::FTP->new('ftp.rge.com');
$ftp->login('ftp','anon@');
my $okay=$ftp->quot('HELP');
my $code=$ftp->code;
my $message=$ftp->message;
print "[$okay] [$code] [$message]\n";
Prints:
$ perl tester
[2] [214] [The following commands are recognized (* =>'s unimplemented
+).
USER PORT STOR MSAM* RNTO* NLST MKD* CDUP
PASS PASV APPE* MRSQ* ABOR SITE XMKD* XCUP
ACCT* TYPE MLFL* MRCP* DELE* SYST RMD* STOU*
SMNT* STRU MAIL* ALLO* CWD STAT XRMD* SIZE
REIN* MODE MSND* REST XCWD HELP PWD MDTM
QUIT RETR MSOM* RNFR* LIST NOOP XPWD
Direct comments to ftp@rge.com.
]
Some of the methods come from
Net::Cmd, which Net::FTP is derived from. See the docs for both.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.