home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 7: Programming / CDAT7.iso / Share / Editores / Perl5 / perl / lib / site / auto / URI / URL / eq.al < prev    next >
Encoding:
Text File  |  1997-08-10  |  422 b   |  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.