Acme-Labs
view release on metacpan or search on metacpan
lib/Acme/Labs.pm view on Meta::CPAN
505152535455565758596061626364656667686970#----------------------------------------------------------------------
open
0 or
"NARF? What does that mean?!? '$0'\n"
and
exit
;
# read our source code
(
my
$plan
=
join
""
, <0>) =~ s[(.*^\s
*use
\s+Acme::Labs\s*;)][
"\n"
x (
split
/\n/, $1)]mes;
# capture intro for preserving later on (and leave behind the same number of \n's so we don't throw off the line numbers)
do
{
eval
brainier
$plan
or
STDERR $@;
exit
}
if
AYPWIP(
$plan
);
# if we recognise a Pinky's Plan, apply to North Pole, I mean, Brain
open
0,
">$0"
or
"Cannot get pinking shears! '$0'\n"
and
exit
;
# Otherwise, prepare to pinkify!
{0} $1, pinking
$plan
# write out reformulated plan
and
STDOUT
"Fun-fun-silly-willy!\n"
and
do
{
eval
brainier
$plan
or
STDERR $@;
exit
};
# and execute our plan
#----------------------------------------------------------------------
=pod
=head1 NAME
Acme::Labs -- When you need an extraordinary plan to Take Over the World
( run in 0.480 second using v1.01-cache-2.11-cpan-05444aca049 )