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

📄 http.pm

📁 1. 记录每个帖子的访问人情况
💻 PM
字号:
package URI::http;require URI::_server;@ISA=qw(URI::_server);use strict;use vars qw(%unreserved_escape);sub default_port { 80 }sub canonical{    my $self = shift;    my $other = $self->SUPER::canonical;    my $slash_path = defined($other->authority) &&        !length($other->path) && !defined($other->query);    if ($slash_path || $$other =~ /%/) {	$other = $other->clone if $other == $self;	unless (%unreserved_escape) {	    for ("A" .. "Z", "a" .. "z", "0" .."9",		 "-", "_", ".", "!", "~", "*", "'", "(", ")"		) {		$unreserved_escape{sprintf "%%%02X", ord($_)} = $_;	    }	}	$$other =~ s/(%[0-9A-F]{2})/exists $unreserved_escape{$1} ?	                                   $unreserved_escape{$1} : $1/ge;	$other->path("/") if $slash_path;    }    $other;}1;

⌨️ 快捷键说明

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