home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / perl_ste.zip / auto / URI / URL / eq.al < prev    next >
Text File  |  1997-11-28  |  424b  |  14 lines

  1. # NOTE: Derived from ./blib/lib/URI/URL.pm.  Changes made here will be lost.
  2. package URI::URL;
  3.  
  4. # Compare two URLs, subclasses will provide a more correct implementation
  5. sub eq {
  6.     my($self, $other) = @_;
  7.     $other = URI::URL->new($other, $self) unless ref $other;
  8.     ref($self) eq ref($other) &&
  9.       $self->scheme eq $other->scheme &&
  10.       $self->as_string eq $other->as_string;  # Case-sensitive
  11. }
  12.  
  13. 1;
  14.