NAME
Sub::Spec::Manual::Spec - Spec for sub spec
VERSION
version 0.12
DESCRIPTION
This documentation specifies the syntax for sub spec.
CLAUSE
Properties
per_import => BOOL
If true, this means that for each importer, Sub::Spec will construct a new wrapper for the subroutine.
Retry and timeout are two such clauses.
per_call => BOOL
If true, this means that in each subroutine call you can pass some value to modify the clause behaviour: -CLAUSENAME => VALUE. The wrapper is able to act upon the different clause arguments.
Retry and timeout are two such clauses. You can specify retry and timeout on a per-call basis:
search_files(root => '/', pattern => qr/^[abc]/, -timeout => 30); download_url(url => 'http://host/path', -timeout => 300, -retry => 4);
ADDING NEW CLAUSE
SEE ALSO
XXX
AUTHOR
Steven Haryanto <stevenharyanto@gmail.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Steven Haryanto.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.