Skip to content

Commit

Permalink
added another path canonicalizing example
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Sep 17, 2013
1 parent 8e7f13d commit 633e716
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Mojo/Path.pm
Expand Up @@ -189,6 +189,9 @@ Canonicalize path.
# "/foo/baz"
Mojo::Path->new('/foo/./bar/../baz')->canonicalize;
# "../foo/baz"
Mojo::Path->new('/foo/../bar/../../baz')->canonicalize;
=head2 clone
my $clone = $path->clone;
Expand Down

0 comments on commit 633e716

Please sign in to comment.