Original Usenet thread from alt.ascii-art, started 9 Jul 2005.
perl ascii - pilgrims
alt.ascii-art
· 1 message · 9 Jul 2005
From: <http://www.perlmonks.org/?next=40;node_id=1597>
Running this code will produce an animation.
#!/usr/bin/perl
# Come forth all ye pilgrims to this monastary of learning.
# Bringeth your Manpages and the books of O'Reilly and hold
# them up to the lord. They contain truths that cannot be
# denied. The road to wisdom is hard, but through the hills
# and valleys you will be not alone. Persevere in your
# studies, and know that some secrets are worth the toil.
sub _{my($ox,$oy,$_x,$_y,$_c)= my($x,$y,$_x,$_y,$_c)=@_;my $oc=q().''.
$.[$x][$y];$oc=~ s)/) ),($.[$_x-1][$_y],$.[$_x][$_y],$.[$_x-1][$_y+1])
=(q( ),qq($_c),q( )),system(($^O eq qq(\x4D\x53\x57\x69\x6E\x33\x32))?
qq(\x63\x6c\x73):qq(\x63\x6c\x65\x61\x72)),($.[$x-1][$y],$.[$x][$y],#-
$.[$x-1][$y+1])=('o','^','/'),($y<$l-1)?($y++,($.[$x][$y]eq'/')?($x--)
:(($.[$x][$y]eq(q( )))?($x++):())):(($.[$x][$y],,$.[$x-1][$y],$.[$x-1]
[$y+1])=('|','|','o'));{for $x(@.){print @$x,}};return ($x,$y,$ox,$oy,
$oc)}while(defined($_=<DATA>)){@_=split(q(),$_),$l=50,,push(@.,[@_]),}
$i=@q;for(ord q()..ord q(=)){(($_ % 3 eq @q)&($i<5))?(push(@m,[5,'',''
,'']),$i++):();for $m(@m){(@$m)=_(@$m),}select $,,$,,$,,0.2,,};__END__
+
__ |
_/ \_ ________ + (_) +
__/\/\/\/\__ / | (_)|o|(_)
/ \ /\/ \____ |o||+||o|
___ ___/ \__/ \___|___n___|__/
\/
--
Mark Hill
Related ASCII art in the Gallery
Explore these categories from our collection of 11,000+ artworks:
Make your own ASCII art
Turn images, text or 3D into ASCII, or draw your own – right in your browser.
About this thread.
These messages were posted publicly to the newsgroup
alt.ascii-art
in 2005 and are mirrored here unchanged as part of the Historic Archives – only email addresses are masked.
The artwork and text belong to their original authors: if you copy a piece, keep the artist's initials or signature intact and credit them where you can.
Are you one of the authors? Contact us to get your posts attributed, connected to your artist profile, or removed.
Report this message
Help us keep the archive clean and accurate. Reports are reviewed by a person – nothing is changed automatically.