0057nobodyさん垢版 | 大砲02/03/26 11:44ID:??? my ($host, $port, $file) = ($uri =~ m!http://([^:/]+)(?::(\d+)?(.+)!); $portにundefだか0だかが入るのを気にしなければ1行。