⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ftp.pm

📁 1. 记录每个帖子的访问人情况
💻 PM
字号:
package URI::ftp;require URI::_server;require URI::_userpass;@ISA=qw(URI::_server URI::_userpass);use strict;sub default_port { 21 }sub path { shift->path_query(@_) }  # XXXsub _user     { shift->SUPER::user(@_);     }sub _password { shift->SUPER::password(@_); }sub user{    my $self = shift;    my $user = $self->_user(@_);    $user = "anonymous" unless defined $user;    $user;}sub password{    my $self = shift;    my $pass = $self->_password(@_);    unless (defined $pass) {	my $user = $self->user;	if ($user eq 'anonymous' || $user eq 'ftp') {	    # anonymous ftp login password            # If there is no ftp anonymous password specified            # then we'll just use 'anonymous@'            # We don't try to send the read e-mail address because:            # - We want to remain anonymous            # - We want to stop SPAM            # - We don't want to let ftp sites to discriminate by the user,            #   host, country or ftp client being used.	    $pass = 'anonymous@';	}    }    $pass;}1;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -