Web::ID::Util - utility functions used in Web-ID
These are utility functions which I found useful building Web-ID. Many of them may also be useful creating the kind of apps that Web-ID is used to authenticate for.
Here is a very brief summary. By default, they're all exported to your namespace. (This module uses Exporter::Tiny so you get pretty good control over what gets exported.)
true
false
read_only
read_write
get_trine_model($url)
u($curie)
uu($curie)
u()
make_bigint_from_node($node, %options)
Supported options are fallback which provides a fallback node which will be used when $node is non-literal; and fallback_type either 'dec' or 'hex' which is used when parsing the fallback node, or if $node is a plain literal. (The actual datatype of the fallback node is ignored for hysterical raisins.)
fallback
$node
fallback_type
Additionally, any function from List::MoreUtils can be exported by request, except true and false as they conflict with the constants above.
use Web::ID::Utils qw(:default uniq);
I don't wanna hear about them unless they cause knock-on bugs for Web::ID itself.
Exporter::Tiny, Web::ID, Acme::24.
Toby Inkster <tobyink@cpan.org>.
This software is copyright (c) 2012 by Toby Inkster.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
To install Web::ID, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Web::ID
CPAN shell
perl -MCPAN -e shell install Web::ID
For more information on module installation, please visit the detailed CPAN module installation guide.