NAME

UNIVERSAL::DOES - Provides UNIVERSAL::DOES() method for older perls

VERSION

This document describes UNIVERSAL::DOES version 0.005.

SYNOPSIS

# if you require UNIVERSAL::DOES, you can say the following:
require UNIVERSAL::DOES
	 unless defined &UNIVERSAL::DOES;

# you can call DOES() in any perls
$class->DOES($role);
$object->DOES($role);

# also, this provides a does() function
use UNIVERSAL::DOES qw(does);

# use does($thing, $role), instead of UNIVERSAL::isa($thing, $role)
does($thing, $role);   # $thing can be non-invocant
does($thing, 'ARRAY'); # also ok, $think may have overloaded @{}

DESCRIPTION

UNIVERSAL::DOES provides a UNIVERSAL::DOES() method for compatibility with perl 5.10.x.

This module also provides a does() function that checks something does some roles, suggested in perltodo.

FUNCTIONS

METHODS

The following description is just copied from UNIVERSAL in perl 5.10.1.

NOTES

DEPENDENCIES

Perl 5.5.3 or later.

BUGS

No bugs have been reported.

Please report any bugs or feature requests to the author.

AUTHOR

Goro Fuji (gfx) <gfuji(at)cpan.org>

SEE ALSO

UNIVERSAL.

LICENSE AND COPYRIGHT

Copyright (c) 2009, Goro Fuji (gfx). Some rights reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.