blob: 0bb4ae50bf82b4bd75a26389319b39defa7a43f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
package Types::URI; use strict; use warnings; use namespace::autoclean; use Type::Library -base, -declare => 'Uri'; use Type::Utils -all; use Types::Standard -types; class_type Uri, { class => 'URI' }; coerce Uri, from Str, via { require URI; URI->new($_); }; 1;
|