home *** CD-ROM | disk | FTP | other *** search
/ CLIX - Fazer Clix Custa Nix / CLIX-CD.cdr / mac / lib / auto / URI / URL / eq.al < prev    next >
Text File  |  1997-12-13  |  405b  |  14 lines

  1. # NOTE: Derived from :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.