TB2::BlackHole - Goes Nowhere Does Nothing
use TB2::BlackHole; my $blackhole = TB2::BlackHole->new; $blackhole->whatever; $blackhole->destroy_the_universe( pretty => "please" );
This is an object that accepts any method with any argument and returns another BlackHole object. This allows chained black holes like...
$thing->what->huh->oh;
BlackHole objects are always boolean false so code like this DTRT.
if( $thing->what ) { ... }
You'd use this if you have an optional object, but don't want everyone to check if they have it. For example, a formatter. This may turn out to be a really bad idea.
To install Test::Simple, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Simple
CPAN shell
perl -MCPAN -e shell install Test::Simple
For more information on module installation, please visit the detailed CPAN module installation guide.