|
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();
# you can use it just as an alternative to built-in 'undef'. my $str = 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!
}
You must need 'void' and other void-ish functions to write cool codes.
Want
Okamoto RYO <ryo@aquahill.net>
|
Acme::Void - Making void things more void |