Patterns::UndefObject::maybe - Install a 'maybe' top lwvel package
use Patterns::UndefObject::maybe; my $name = $user_rs->maybe::find(100)->name || 'Unknown Username';
See Patterns::UndefObject for project details. This package does everything that those documents describe, but instead if doing it via an importable method (Maybe) or via a factory method, it installs a top level 'maybe' namespace. You may find this approach more appealoing, or you might find it to be a namespace polluter. You decide.
See Patterns::UndefObject
To install Patterns::UndefObject, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Patterns::UndefObject
CPAN shell
perl -MCPAN -e shell install Patterns::UndefObject
For more information on module installation, please visit the detailed CPAN module installation guide.