| 1 | package Sex; | ||||||||||||||
| 2 | |||||||||||||||
| 3 | 3 | ▶ | use strict qw(vars subs); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 4 | |||||||||||||||
| 5 | 3 | srand; # More exciting this way. | |||||||||||||
| 6 | |||||||||||||||
| 7 | 3 | ▶ | use vars qw($VERSION); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 8 | 3 | $VERSION = '0.12'; | |||||||||||||
| 9 | |||||||||||||||
| 10 | 3 | my @Grunts = ('Does it get bigger?', | |||||||||||||
| 11 | 'I thought eight inches was longer than that.', | ||||||||||||||
| 12 | 'Baseball...', | ||||||||||||||
| 13 | "Let's talk about our relationship.", | ||||||||||||||
| 14 | 'Wrong hole, dear.', | ||||||||||||||
| 15 | qw(Yes! | ||||||||||||||
| 16 | Oh! | ||||||||||||||
| 17 | Harder! | ||||||||||||||
| 18 | YEAH! | ||||||||||||||
| 19 | YES! | ||||||||||||||
| 20 | OOOooooh... | ||||||||||||||
| 21 | Baby. | ||||||||||||||
| 22 | MORE! | ||||||||||||||
| 23 | Mmmmmm... | ||||||||||||||
| 24 | There! | ||||||||||||||
| 25 | ) | ||||||||||||||
| 26 | ); | ||||||||||||||
| 27 | |||||||||||||||
| 28 | 1 | ▶ | sub import { | ||||||||||||
|
Subroutine
import: called CC=9 SCAR=22.4
| |||||||||||||||
| 29 | 1 | local $| = 1; | |||||||||||||
| 30 | |||||||||||||||
| 31 | 1 | my($class) = shift; | |||||||||||||
| 32 | 1 | my($caller) = caller; | |||||||||||||
| 33 | |||||||||||||||
| 34 | 1 | ▶ | if( !@_ ) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 35 | 0 | die "It takes two to tango, babe.\n"; | |||||||||||||
| 36 | } | ||||||||||||||
| 37 | elsif( @_ == 1 ) { | ||||||||||||||
| 38 | 0 | ▶ | if( $_[0] eq $caller ) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 39 | 0 | die <<MASTURBATION; | |||||||||||||
| 40 | masturbation | ||||||||||||||
| 41 | n : manual stimulation of the genital organs (of yourself or | ||||||||||||||
| 42 | another) for sexual pleasure [syn: {onanism}, {self-abuse}] | ||||||||||||||
| 43 | MASTURBATION | ||||||||||||||
| 44 | |||||||||||||||
| 45 | } | ||||||||||||||
| 46 | else { | ||||||||||||||
| 47 | 0 | die "Parthenogenesis isn't currently supported by ". | |||||||||||||
| 48 | __PACKAGE__ . "\n"; | ||||||||||||||
| 49 | } | ||||||||||||||
| 50 | } | ||||||||||||||
| 51 | 1 | ▶ | my @modules = map { /^\?$/ ? volunteer() : $_ } @_; | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 52 | |||||||||||||||
| 53 | 1 | my %zygote = (); | |||||||||||||
| 54 | 1 | my $call_sym_table = \%{$caller.'::'}; | |||||||||||||
| 55 | 1 | foreach my $gamete (@modules) { | |||||||||||||
| 56 | 5 | ▶ | eval "use $gamete(); 1" or next; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
Branch: 1 branch
| |||||||||||||||
| 57 | 5 | ▶ | while( my($chromo, $rna) = each %{$gamete.'::'} ) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 58 | 140 | push @{$zygote{$chromo}}, $rna; | |||||||||||||
| 59 | } | ||||||||||||||
| 60 | } | ||||||||||||||
| 61 | |||||||||||||||
| 62 | 1 | ▶ | while( my($chromo, $rna) = each %zygote ) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 63 | 124 | $call_sym_table->{$chromo} = $rna->[rand @$rna]; | |||||||||||||
| 64 | 124 | print $Grunts[rand @Grunts], "\n"; | |||||||||||||
| 65 | #select(undef, undef, undef, 0.45); | ||||||||||||||
| 66 | } | ||||||||||||||
| 67 | |||||||||||||||
| 68 | # push @{$caller.'::ISA'}, @modules; | ||||||||||||||
| 69 | |||||||||||||||
| 70 | 1 | print "\n"; | |||||||||||||
| 71 | |||||||||||||||
| 72 | 1 | return 'Harry Balls who?'; | |||||||||||||
| 73 | } | ||||||||||||||
| 74 | |||||||||||||||
| 75 | 3 | ▶ | sub volunteer { | ||||||||||||
|
Subroutine
volunteer: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||
| 76 | 3 | my @volunteers = map {s/\.pmc?$//;s!/!::!g;$_} keys %INC; | |||||||||||||
| 77 | 3 | $volunteers[rand @volunteers]; | |||||||||||||
| 78 | } | ||||||||||||||
| 79 | |||||||||||||||
| 80 | 3 | return 'Harry balls anyone he wants!'; | |||||||||||||