W3C home > Mailing lists > Public > www-archive@w3.org > December 2002

URI comparison in Perl / URI.pm 1.22

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Thu, 26 Dec 2002 20:47:53 +0100
To: www-archive@w3.org
Message-ID: <3e125c2d.346788215@smtp.bjoern.hoehrmann.de>

Using

  <http://search.cpan.org/author/GAAS/URI-1.22/URI.pm#COMMON_METHODS>

in a Perl program

  #!perl -w
  use strict;
  use warnings;
  use URI;
  
  my $uri1 = URI->new("http://www.example.org/%61");
  my $uri2 = URI->new("http://www.example.org/a");
  
  print "equal" if $uri1->eq($uri2);

prints "equal".
Received on Thursday, 26 December 2002 14:47:33 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 7 November 2012 14:17:24 GMT