The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Changes for version 0.11 - 2011-10-03

  • *POSSIBLE BACKWARDS INCOMPATIBILITY* When using uri_for, a match is considered more exact if it is also missing items from the path descriptor that don't appear in the route's defaults or variables. For instance, if a router has /foo with defaults of { 'a' => 'b' } and /bar with defaults of { 'a' => 'b', 'c' => 'd' }, then ->uri_for({ 'a' => 'b' }) will always return /foo. Previously, it would return one of them arbitrarily, depending on the definition order. Also, if this new rule doesn't result in a single route being matched (for instance, if /foo had defaults of { 'a' => 'b', 'e' => 'f' }), then an exception will be thrown.
  • *POSSIBLE BACKWARDS INCOMPATIBILITY* When using match, a path will be considered more exact if it matches more required non-variable path components. For instance, if a router has /foo/bar and /foo/:bar, then ->match('/foo/bar') will always match /foo/bar (and not /foo/:bar). Previously, it would return one of them arbitrarily, depending on the definition order. Also, if this new rule doesn't result in a single route being matched (for instance, if the router contained /:foo/bar and /foo/:bar), then an exception will be thrown.
  • Warn when creating validations that don't correspond to a path element
  • Convert to Dist::Zilla

Modules

A tool for routing paths
An object to represent a route
The result of a Path::Router match
An interactive shell for testing router configurations
A set of types that Path::Router uses
A testing module for testing routes