Skip Menu |

This queue is for tickets about the libwww-perl CPAN distribution.

Report information
The Basics
Id: 1224
Status: resolved
Priority: 0/
Queue: libwww-perl

People
Owner: Nobody in particular
Requestors: joel [...] alpsgiken.gr.jp
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 5.61
Fixed in: (no value)



Subject: perldoc document bug for $URI::ABS_REMOTE_LEADING_DOTS
Version: ------------------------ This is perl, v5.6.1 built for MSWin32-x86-multi-thread (with 1 registered patch, see perl -V for more detail) Copyright 1987-2001, Larry Wall Binary build 633 provided by ActiveState Corp. http://www.ActiveState.com Built 21:33:05 Jun 17 2002 ------------------------ Problem: perldoc URI gave me the following text and example for $URI::ABS_REMOTE_LEADING_DOTS: ----------------------------------- $URI::ABS_REMOTE_LEADING_DOTS You can also have the abs() method ignore excess ".." segments in the relative URI by setting $URI::ABS_REMOTE_LEADING_DOTS to a TRUE value. The difference is demonstrated by the following examples: URI->new("../../../foo")->abs("http://host/a/b") ==> "http://host/../../foo" local $URI::URL::ABS_REMOTE_LEADING_DOTS = 1; URI->new("../../../foo")->abs("http://host/a/b") ==> "http://host/foo" ----------------------------------- The example shows $URI::URL::ABS_REMOTE_LEADING_DOTS, where it should, as near as I can tell, be $URI::ABS_REMOTE_LEADING_DOTS.