---
name: "Path::Router::Route"
section: "3pm"
platform: "linux"
package: "libpath-router-perl"
version: "0.15-4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Path::Router::Route"
---

# Path::Router::Route(3pm)

An object to represent a route

## NAME

Path::Router::Route - An object to represent a route

## VERSION

version 0.15

## DESCRIPTION

This object is created by Path::Router when you call the `"add_route"` method. In general you won't ever create these objects directly, they will be created for you and you may sometimes introspect them.

## METHODS

- **new (path =** $path, ?%options)\>

  - **clone**

  - **path**

  - **target**

  - **has\_target**

  - **components**

  - **length**

  - **defaults**

  - **has\_defaults**

  - **validations**

  - **has\_validations**

  - **has\_validation\_for**

  - **create\_default\_mapping**

  - **match**

  - **generate\_match\_code**

  ### Component checks

- **get\_component\_name ($component)**

  - **is\_component\_optional ($component)**

  - **is\_component\_variable ($component)**

  ### Length methods

- **length\_without\_optionals**

  ### Introspection

- **meta**

  ## BUGS

All complex software has bugs lurking in it, and this module is no exception. If you find a bug please either email me, or add the bug to cpan-RT.

## AUTHOR

Stevan Little \<stevan@cpan.org\>

## COPYRIGHT AND LICENSE

Copyright 2008-2011 Infinity Interactive, Inc.

\<http://www.iinteractive.com\>

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

## AUTHOR

Stevan Little \<stevan@cpan.org\>

## COPYRIGHT AND LICENSE

This software is copyright (c) 2016 by Infinity Interactive.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
