NAME

Array::OneOf -- checks if an element is in an array

SYNOPSIS

use Array::OneOf ':all';

# this test will pass
if (oneof 'a', 'a', 'b', 'c') {
   # do stuff
}

# this test will not pass
if (oneof 'x', 'a', 'b', 'c') {
   # do stuff
}

DESCRIPTION

Array::OneOf provides one simple utility, the oneof function. Its use is simple: if the first param is equal to any of the remaining params, it returns true. Otherwise it returns false.

INSTALLATION

Array::OneOf can be installed with the usual routine:

perl Makefile.PL
make
make test
make install

TERMS AND CONDITIONS

Copyright (c) 2012 by Miko O'Sullivan. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. This software comes with NO WARRANTY of any kind.

AUTHORS

Miko O'Sullivan miko@idocs.com

VERSION

Version 1.00 November 22, 2012

Initial release