perl ascii - pilgrims
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
Original message headers
X-Google-Thread: f996b,c293500ceaae46ad,start X-Google-Attributes: gidf996b,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Mark Hill <m...@rk.invalid> Newsgroups: alt.ascii-art Subject: perl ascii - pilgrims Date: 9 Jul 2005 23:46:28 GMT Lines: 32 Message-ID: <200...@blackhole.markhill.me.uk> X-Trace: individual.net yTa7DTwnVuE4wG4xgEq2XQdGNrGX18bk6dpzWjAE0Q+K4RMyB/ User-Agent: slrn/0.9.8.1 (Linux) Xref: g2news1.google.com alt.ascii-art:4287
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 message.
This message was posted publicly to the newsgroup
alt.ascii-art
in 2005 and is 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 the author? 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.