|
Acme::Void - Making void things more void |
Acme::Void - Making void things more void
use Acme::Void;
# showing explicitly it's under void context. void do_something();
# or a bit more explicitly. void = do_something();
# you can use it just like an alternative to built-in 'undef'. my $str = void;
# void yields void. void->foo; # always void
use Acme::Void qw(:all);
# you might like other languages. my $foo = nil; my $bar = null;
# with broken love...
if( $your_love eq nothing ){
my @heart = empty;
}
# no operations here. noop;
# or OOP!
sub meet_a_cute_girl {
my $self = shift;
$self->noop; # no way!
}
# the equality. void = empty = nil = noop = nothing = null = undef; void = void->void;
You must need 'void' and other void-ish functions to write cool codes.
Want, Class::BlackHole
Okamoto RYO <ryo@aquahill.net>
|
Acme::Void - Making void things more void |