Acme-Void

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

NAME
    Acme::Void - Making void things more void

SYNOPSIS
     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 ){ 

Void.pm  view on Meta::CPAN

=head1 SYNOPSIS

 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;

Void.pm  view on Meta::CPAN

 # 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;

=head1 DESCRIPTION

You must need 'void' and other void-ish functions to write
cool codes.

=head1 FUNCTIONS

=over 4

t/05_sample.t  view on Meta::CPAN


    void __PACKAGE__->foo;
    void = __PACKAGE__->foo;

    void->foo;
    void->void;

    my $foo = void;
    my @bar = void;

    void = empty = nil = noop = nothing = null = undef;
    void empty nil noop nothing null undef;

    __PACKAGE__->bar;
};
print "not " if $@;
print "ok\n";

sub foo { 1 };

sub bar {
  my $class = shift;



( run in 1.942 second using v1.01-cache-2.11-cpan-d80b1682f3f )