line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Acme::DeepThoughts;
|
2
|
|
|
|
|
|
|
$VERSION = '0.01';
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
my $glass = " \t"x8;
|
5
|
0
|
|
|
0
|
0
|
0
|
sub reflect { local $_ = unpack "b*", pop; tr/01/ \t/; s/(.{9})/$1\n/g; $glass.$_ }
|
|
0
|
|
|
|
|
0
|
|
|
0
|
|
|
|
|
0
|
|
|
0
|
|
|
|
|
0
|
|
6
|
1
|
|
|
1
|
0
|
3
|
sub deflect { local $_ = pop; s/^$glass|[^ \t]//g; tr/ \t/01/; pack "b*", $_ }
|
|
1
|
|
|
|
|
1752
|
|
|
1
|
|
|
|
|
20
|
|
|
1
|
|
|
|
|
187
|
|
7
|
1
|
|
|
1
|
0
|
71
|
sub opaque { $_[0] =~ /\S/ }
|
8
|
0
|
|
|
0
|
0
|
|
sub deep { $_[0] =~ /^$glass/ }
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
open 0 or print "Can't open '$0'\n" and exit;
|
11
|
|
|
|
|
|
|
(my $thought = join "", <0>) =~ s/.*^\s*use\s+Acme::DeepThoughts\s*;\n\n(?:.*?--\s+Jack\s+Handey.*?\n)?//sm;
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
local $SIG{__WARN__} = \&opaque;
|
14
|
1
|
|
|
1
|
|
9
|
do {eval deflect $thought; exit} unless opaque $thought and not deep $thought;
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
117
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
my $DeepThought = '';
|
17
|
|
|
|
|
|
|
{
|
18
|
|
|
|
|
|
|
my $rand = int rand 152;
|
19
|
|
|
|
|
|
|
while($rand > 0){
|
20
|
|
|
|
|
|
|
$DeepThought = ;
|
21
|
|
|
|
|
|
|
$rand--;
|
22
|
|
|
|
|
|
|
}
|
23
|
|
|
|
|
|
|
close DATA;
|
24
|
|
|
|
|
|
|
chomp $DeepThought;
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
require Text::Wrap;
|
27
|
|
|
|
|
|
|
local $Text::Wrap::columns = 72;
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
my @lines = Text::Wrap::wrap('', '', $DeepThought);
|
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
if(length $lines[-1] < 63 ){
|
32
|
|
|
|
|
|
|
$lines[-1] .= " -- Jack Handey";
|
33
|
|
|
|
|
|
|
} else {
|
34
|
|
|
|
|
|
|
push @lines, " -- Jack Handey";
|
35
|
|
|
|
|
|
|
}
|
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
$DeepThought = join "\n",@lines;
|
38
|
|
|
|
|
|
|
}
|
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
open 0, ">$0" or print "Cannot ponder '$0'\n" and exit;
|
41
|
|
|
|
|
|
|
print {0} "use Acme::DeepThoughts;\n\n$DeepThought\n", reflect $thought and exit;
|
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 NAME
|
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
Acme::DeepThoughts - Jack Handey does perl
|
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 SYNOPSIS
|
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
use Acme::DeepThoughts
|
51
|
|
|
|
|
|
|
print "Hello world";
|
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head1 DESCRIPTION
|
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
The first time you run a program under C |
56
|
|
|
|
|
|
|
removes all the unsightly printable characters from
|
57
|
|
|
|
|
|
|
your source file. The code continues to work exactly as it did before,
|
58
|
|
|
|
|
|
|
but now it contains a I.
|
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
These deep thoughts were collected from ELE,
|
61
|
|
|
|
|
|
|
which is a site "I."
|
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head1 BUGS
|
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
Please don't report bugs ;)
|
66
|
|
|
|
|
|
|
But if you really really need to, go to
|
67
|
|
|
|
|
|
|
Ehttp://rt.cpan.org/NoAuth/Bugs.html?Dist=Acme-DeepThoughtsE
|
68
|
|
|
|
|
|
|
or send mail to Ebug-Acme-DeepThoughts#rt.cpan.orgE
|
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=head1 AUTHOR
|
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
D. H. (PODMASTER)
|
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=head1 COPYRIGHT
|
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
This program is free software; you can redistribute
|
78
|
|
|
|
|
|
|
it and/or modify it under the same terms as Perl itself.
|
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
The full text of the license can be found in the
|
81
|
|
|
|
|
|
|
LICENSE file included with this module.
|
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=head1 SEE ALSO
|
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
L, L,.
|
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=cut
|
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
__DATA__
|