Skip to content

Commit 5ffb78e

Browse files
committed
s/perl.com/example.com/ in examples and tests
1 parent f4e8c8c commit 5ffb78e

File tree

6 files changed

+25
-24
lines changed

6 files changed

+25
-24
lines changed

Changes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Revision history for URI
22

33
{{$NEXT}}
4+
- s/perl.com/example.com/ in examples and tests (GH#81) (Olaf Alders)
45

56
5.06 2021-01-14 16:01:13Z
67
- Tidy import statements (GH#80) (Olaf Alders)

lib/URI.pm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -357,13 +357,13 @@ URI - Uniform Resource Identifiers (absolute and relative)
357357
358358
=head1 SYNOPSIS
359359
360-
use URI;
360+
use URI ();
361361
362-
$u1 = URI->new("http://www.perl.com");
362+
$u1 = URI->new("http://www.example.com");
363363
$u2 = URI->new("foo", "http");
364364
$u3 = $u2->abs($u1);
365365
$u4 = $u3->clone;
366-
$u5 = URI->new("HTTP://WWW.perl.com:80")->canonical;
366+
$u5 = URI->new("HTTP://WWW.example.com:80")->canonical;
367367
368368
$str = $u->as_string;
369369
$str = "$u";
@@ -374,7 +374,7 @@ URI - Uniform Resource Identifiers (absolute and relative)
374374
$frag = $u->fragment;
375375
376376
$u->scheme("ftp");
377-
$u->host("ftp.perl.com");
377+
$u->host("ftp.example.com");
378378
$u->path("cpan/");
379379
380380
=head1 DESCRIPTION

lib/URI/Heuristic.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ URI::Heuristic - Expand URI using heuristics
77
=head1 SYNOPSIS
88
99
use URI::Heuristic qw(uf_uristr);
10-
$u = uf_uristr("perl"); # http://www.perl.com
10+
$u = uf_uristr("example"); # http://www.example.com
1111
$u = uf_uristr("www.sol.no/sol"); # http://www.sol.no/sol
1212
$u = uf_uristr("aas"); # http://www.aas.no
1313
$u = uf_uristr("ftp.funet.fi"); # ftp://ftp.funet.fi

t/http.t

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,30 @@ print "1..16\n";
55

66
use URI ();
77

8-
my $u = URI->new("<http://www.perl.com/path?q=fôo>");
8+
my $u = URI->new("<http://www.example.com/path?q=fôo>");
99

1010
#print "$u\n";
11-
print "not " unless $u eq "http://www.perl.com/path?q=f%F4o";
11+
print "not " unless $u eq "http://www.example.com/path?q=f%F4o";
1212
print "ok 1\n";
1313

1414
print "not " unless $u->port == 80;
1515
print "ok 2\n";
1616

1717
# play with port
1818
my $old = $u->port(8080);
19-
print "not " unless $old == 80 && $u eq "http://www.perl.com:8080/path?q=f%F4o";
19+
print "not " unless $old == 80 && $u eq "http://www.example.com:8080/path?q=f%F4o";
2020
print "ok 3\n";
2121

2222
$u->port(80);
23-
print "not " unless $u eq "http://www.perl.com:80/path?q=f%F4o";
23+
print "not " unless $u eq "http://www.example.com:80/path?q=f%F4o";
2424
print "ok 4\n";
2525

2626
$u->port("");
27-
print "not " unless $u eq "http://www.perl.com:/path?q=f%F4o" && $u->port == 80;
27+
print "not " unless $u eq "http://www.example.com:/path?q=f%F4o" && $u->port == 80;
2828
print "ok 5\n";
2929

3030
$u->port(undef);
31-
print "not " unless $u eq "http://www.perl.com/path?q=f%F4o";
31+
print "not " unless $u eq "http://www.example.com/path?q=f%F4o";
3232
print "ok 6\n";
3333

3434
my @q = $u->query_form;
@@ -39,7 +39,7 @@ $u->query_form(foo => "bar", bar => "baz");
3939
print "not " unless $u->query eq "foo=bar&bar=baz";
4040
print "ok 8\n";
4141

42-
print "not " unless $u->host eq "www.perl.com";
42+
print "not " unless $u->host eq "www.example.com";
4343
print "ok 9\n";
4444

4545
print "not " unless $u->path eq "/path";
@@ -52,14 +52,14 @@ $u->scheme("https");
5252
print "not " unless $u->port == 443;
5353
print "ok 12\n";
5454

55-
print "not " unless $u eq "https://www.perl.com/path?foo=bar&bar=baz";
55+
print "not " unless $u eq "https://www.example.com/path?foo=bar&bar=baz";
5656
print "ok 13\n";
5757

5858
print "not " unless $u->secure;
5959
print "ok 14\n";
6060

61-
$u = URI->new("http://%77%77%77%2e%70%65%72%6c%2e%63%6f%6d/%70%75%62/%61/%32%30%30%31/%30%38/%32%37/%62%6a%6f%72%6e%73%74%61%64%2e%68%74%6d%6c");
62-
print "not " unless $u->canonical eq "http://www.perl.com/pub/a/2001/08/27/bjornstad.html";
61+
$u = URI->new("http://%65%78%61%6d%70%6c%65%2e%63%6f%6d/%70%75%62/%61/%32%30%30%31/%30%38/%32%37/%62%6a%6f%72%6e%73%74%61%64%2e%68%74%6d%6c");
62+
print "not " unless $u->canonical eq "http://example.com/pub/a/2001/08/27/bjornstad.html";
6363
print "ok 15\n";
6464

6565
print "not " unless $u->has_recognized_scheme;

t/rsync.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ print "1..4\n";
55

66
use URI ();
77

8-
my $u = URI->new('rsync://gisle@perl.com/foo/bar');
8+
my $u = URI->new('rsync://gisle@example.com/foo/bar');
99

1010
print "not " unless $u->user eq "gisle";
1111
print "ok 1\n";
@@ -18,6 +18,6 @@ print "ok 3\n";
1818

1919
$u->port(8730);
2020

21-
print "not " unless $u eq 'rsync://gisle@perl.com:8730/foo/bar';
21+
print "not " unless $u eq 'rsync://gisle@example.com:8730/foo/bar';
2222
print "ok 4\n";
2323

t/rtsp.t

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,33 +5,33 @@ print "1..9\n";
55

66
use URI ();
77

8-
my $u = URI->new("<rtsp://media.perl.com/fôo.smi/>");
8+
my $u = URI->new("<rtsp://media.example.com/fôo.smi/>");
99

1010
#print "$u\n";
11-
print "not " unless $u eq "rtsp://media.perl.com/f%F4o.smi/";
11+
print "not " unless $u eq "rtsp://media.example.com/f%F4o.smi/";
1212
print "ok 1\n";
1313

1414
print "not " unless $u->port == 554;
1515
print "ok 2\n";
1616

1717
# play with port
1818
my $old = $u->port(8554);
19-
print "not " unless $old == 554 && $u eq "rtsp://media.perl.com:8554/f%F4o.smi/";
19+
print "not " unless $old == 554 && $u eq "rtsp://media.example.com:8554/f%F4o.smi/";
2020
print "ok 3\n";
2121

2222
$u->port(554);
23-
print "not " unless $u eq "rtsp://media.perl.com:554/f%F4o.smi/";
23+
print "not " unless $u eq "rtsp://media.example.com:554/f%F4o.smi/";
2424
print "ok 4\n";
2525

2626
$u->port("");
27-
print "not " unless $u eq "rtsp://media.perl.com:/f%F4o.smi/" && $u->port == 554;
27+
print "not " unless $u eq "rtsp://media.example.com:/f%F4o.smi/" && $u->port == 554;
2828
print "ok 5\n";
2929

3030
$u->port(undef);
31-
print "not " unless $u eq "rtsp://media.perl.com/f%F4o.smi/";
31+
print "not " unless $u eq "rtsp://media.example.com/f%F4o.smi/";
3232
print "ok 6\n";
3333

34-
print "not " unless $u->host eq "media.perl.com";
34+
print "not " unless $u->host eq "media.example.com";
3535
print "ok 7\n";
3636

3737
print "not " unless $u->path eq "/f%F4o.smi/";

0 commit comments

Comments
 (0)