Created
November 11, 2010 10:34
-
-
Save tomill/672319 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sub foo { | |
my ($self, $args) = rule { | |
uri => { isa => 'Str', xor => [qw(schema host path_query)] }, | |
schema => { isa => 'Str', default => 'http' }, | |
host => { isa => 'Str', default => '127.0.0.1' }, | |
path_query => { isa => 'Str', default => '/' }, | |
method => { isa => 'Str', default => 'GET' }, | |
} @_; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment