Hi people, I inherited a "legacy" code that contains the following line:
return uri_escape( $url, '\x00-\x1f\x7f-\xff^&*()$|?<>!\/\\\\\.' ) . $ext; This code works find under the URI:Escape.pm with a CVS version 3.16 2000/08/16. However, it doesn't work with URI-1.19 in CPAN. I checked the source. I got the following error: uri_escape: Unmatched [ before HERE mark in regex m/([ << HERE \x00-\x1f\x7f-\xff^&*()$|?<>!\\.\\/ at (eval 15) line 1. I checked the source of both Escape.pm and see that the newer one will substitute all / with \\/. So I removed the \ before / in the original line and the code works for the new URI::Escape. I am new to URI::Escape. Can someone tell me this is a bug or a feature? Thanks. Yee Man __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com
