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

NAME

Foo - Example of a module which can optionally use Params::Validate

SYNOPSYS

  use Foo

  my $obj=Foo->new('fred');

DESCRIPTION

This is an example of how you would write a module that optionally uses Params::Validate. If the target machine has Params::Validate installed, the user gets the benefit of full blown parameter validation.

If not, the code will still work, but callers may pass in unexpected data types that cause the module to blow in unexpected ways,