The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
Scalar-IfDefined

This is useful for calling a block of code that can only (or it is only useful to)
be called on a scalar value.

Defines a function 'ifdef' which takes a block or coderef as the first argument,
and a scalar value as its second.

If the scalar value passed in is undef, then that undef is returned.

If the scalar value passed in is defined, then a block (or CODEREF) is run with the scalar
as its argument, and that block's return value is returned to ifdef's caller.


INSTALLATION

To install this module, run the following commands:

	perl Makefile.PL
	make
	make test
	make install

SUPPORT AND DOCUMENTATION

After installing, you can find documentation for this module with the
perldoc command.

    perldoc Scalar::IfDefined



LICENSE AND COPYRIGHT

Copyright (C) 2014 Nick Booker

This program is free software; you can redistribute it and/or modify it
under the terms of either: the GNU General Public License as published
by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.