Help for this page

Select Code to Download


  1. or download this
    perl -MData::PowerSet -le 'my $p = Data::PowerSet->new(qw(A B C D E));
    + print "@$_" while $_= $p->next'
    # produces :
    A B C D E
    ...
    A B
    B
    A
    
  2. or download this
    my %dispatch = (
        A => \&func_a,
    ...
    for my $token (split //, $func_com) {
        push @all_res, [$dispatch{$token}->(@some_val)];
    }