Navigation Menu

Skip to content

Commit

Permalink
fixed path merging examples in Mojo::URL
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed May 12, 2012
1 parent 03141c9 commit 6a2b29f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions lib/Mojo/URL.pm
Expand Up @@ -399,11 +399,14 @@ Parse URL.
Path part of this URL, relative paths will be appended to the existing path,
defaults to a L<Mojo::Path> object.
# "http://mojolicio.us/Mojo/DOM"
Mojo::URL->new('http://mojolicio.us/perldoc')->path('/Mojo/DOM');
# "http://mojolicio.us/DOM/HTML"
Mojo::URL->new('http://mojolicio.us/perldoc/Mojo')->path('/DOM/HTML');
# "http://mojolicio.us/perldoc/Mojo/DOM"
Mojo::URL->new('http://mojolicio.us/perldoc')->path('Mojo/DOM');
# "http://mojolicio.us/perldoc/DOM/HTML"
Mojo::URL->new('http://mojolicio.us/perldoc/Mojo')->path('DOM/HTML');
# "http://mojolicio.us/perldoc/Mojo/DOM/HTML"
Mojo::URL->new('http://mojolicio.us/perldoc/Mojo/')->path('DOM/HTML');
=head2 C<query>
Expand Down

0 comments on commit 6a2b29f

Please sign in to comment.