Query: authority::shared
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
authority::shared(3pm) User Contributed Perl Documentation authority::shared(3pm)NAMEauthority::shared - a multi-AUTHORITY method for your classesSYNOPSISpackage MyApp; BEGIN { $MyApp::AUTHORITY = 'cpan:JOE'; } use authority::shared qw(cpan:ALICE cpan:BOB); package main; use feature qw(say); say scalar MyApp->AUTHORITY; # says "cpan:JOE" MyApp->AUTHORITY('cpan:JOE'); # lives MyApp->AUTHORITY('cpan:ALICE'); # lives MyApp->AUTHORITY('cpan:BOB'); # lives MyApp->AUTHORITY('cpan:CAROL'); # croaksDESCRIPTIONThis module allows you to indicate that your module is issued by multiple authorities. The package variable $AUTHORITY should still be used to indicate the primary authority for the package. This module does two simple things: 1. Creates an @AUTHORITIES array in the caller package, populating it with the arguments passed to "authority::shared" on the "use" line. 2. Exports an AUTHORITY function to your package that reads the $AUTHORITY and @AUTHORITIES package variables. The main use case for shared authorities is for team projects. The team would designate a URI to represent the team as a whole. For example, "http://datetime.perl.org/", "http://moose.iinteractive.com/" or "http://www.perlrdf.org/". Releases can then be officially stamped with the authority of the team using: use authority::shared q<http://www.perlrdf.org/>; And users can check they have an module released by the official team using: RDF::TakeOverTheWorld->AUTHORITY(q<http://www.perlrdf.org/>); which will croak if package RDF::TakeOverTheWorld doesn't have the specified authority.BUGSAn obvious limitation is that this module relies on honesty. Don't release modules under authorities you have no authority to use. Please report any bugs to http://rt.cpan.org/Dist/Display.html?Queue=authority-shared <http://rt.cpan.org/Dist/Display.html?Queue=authority-shared>.SEE ALSOo Object::AUTHORITY - an AUTHORITY method for your class o authority::shared (this module) - a more sophisticated AUTHORITY method for your class o UNIVERSAL::AUTHORITY - an AUTHORITY method for every class (deprecated) o UNIVERSAL::AUTHORITY::Lexical - an AUTHORITY method for every class, within a lexical scope o authority - load modules only if they have a particular authority Background reading: <http://feather.perl6.nl/syn/S11.html>, <http://www.perlmonks.org/?node_id=694377>.AUTHORToby Inkster <tobyink@cpan.org>.COPYRIGHT AND LICENCEThis software is copyright (c) 2011 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.DISCLAIMER OF WARRANTIESTHIS 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. perl v5.14.2 2011-12-15 authority::shared(3pm)
Related Man Pages |
---|
gdalsrsinfo(1) - debian |
html::microformats::format::hevent(3pm) - debian |
html::microformats::format::hresume(3pm) - debian |
rdf::trin3(3pm) - debian |
authority::shared(3pm) - debian |
Similar Topics in the Unix Linux Community |
---|
ALICE ?.... sorry. GOLLUM |
JOE: 3.7 Released! |
Apparently Milgram is still right |
dig-x: only part of the output is needed |
URGENT HELP NEEDED |