#/usr/bin/perl
use strict ; my $OO=
sub{print(($_[0]
==3)?chr( 10
):chr(66+
$_[0]))
;};my
$o=
qq
Q
oooo
o0OOO0OOOo
o0OOOOOOOOOOOo
oOOOOOOO0OOOOOOo
oO0OOOOOOOOOOO0OOo
OOOOOOOOOOOOOOOO0O
OOOOOOOOOOOO0OOOOO
OOOOOOOOOOOOOOOO0O
OOOOOOOOOOOOOOOO
O0OO0OOOOOOO0O
OO0OOO0OOO
OOOOOO
Q;
my
$O0
= 0;
while
( $o=~
/0 (.*?)
(?=0) /sgx)
{my$O=$1;$O0=$O
=~tr/O//;$OO->($O0)}
|
|
Pearl
|
Apr 2001
See the Output »
Fun Fact:
TIMTOWTDI ("Tim Toady") stands for the Perl motto, "There is more than one way to do it."
Technique:
It creates the output using the intervals between "hidden" characters inside the pearl.
|
| ← Back to Code Art |
|