Mojo::Path man page on Fedora

Man page or keyword search:  
man Server   31170 pages
apropos Keyword Search (all sections)
Output format
Fedora logo
[printable version]

Mojo::Path(3)	      User Contributed Perl Documentation	 Mojo::Path(3)

NAME
       Mojo::Path - Path

SYNOPSIS
	 use Mojo::Path;

	 my $path = Mojo::Path->new('/foo/bar%3B/baz.html');
	 shift @{$path->parts};
	 print "$path";

DESCRIPTION
       Mojo::Path is a container for URL paths.

ATTRIBUTES
       Mojo::Path implements the following attributes.

   "leading_slash"
	 my $leading_slash = $path->leading_slash;
	 $path		   = $path->leading_slash(1);

       Path has a leading slash.

   "parts"
	 my $parts = $path->parts;
	 $path	   = $path->parts([qw/foo bar baz/]);

       The path parts.

   "trailing_slash"
	 my $trailing_slash = $path->trailing_slash;
	 $path		    = $path->trailing_slash(1);

       Path has a trailing slash.

METHODS
       Mojo::Path inherits all methods from Mojo::Base and implements the
       following new ones.

   "new"
	 my $path = Mojo::Path->new;
	 my $path = Mojo::Path->new('/foo/bar%3B/baz.html');

       Construct a new Mojo::Path object.

   "canonicalize"
	 $path = $path->canonicalize;

       Canonicalize path.

   "clone"
	 my $clone = $path->clone;

       Clone path.

   "parse"
	 $path = $path->parse('/foo/bar%3B/baz.html');

       Parse path.

   "to_abs_string"
	 my $string = $path->to_abs_string;

       Turn path into an absolute string.  Note that this method is
       EXPERIMENTAL and might change without warning!

   "to_string"
	 my $string = $path->to_string;

       Turn path into a string.

SEE ALSO
       Mojolicious, Mojolicious::Guides, <http://mojolicio.us>.

perl v5.14.1			  2011-09-11			 Mojo::Path(3)
[top]

List of man pages available for Fedora

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net