Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

say what you see

by iamcal (Friar)
on Mar 13, 2002 at 14:00 UTC ( [id://151376]=obfuscated: print w/replies, xml ) Need Help??

#!/usr/bin/perl -w use strict; my $prog=" >>>>>-.<<<+<<<vvv+.^^>^>-.<+.^-v<+>>>-.^^^^+^^^^^^< +.v>+.<<^+.+>++.v-.^>-.v+.^<^^-.<^<^<^<^+.^>>>^+.^^ +<v>>+.^>>>>-.^^^-.<<<<+-+.>vvv--<<-.++.<<<+.<<-.++ >>>>>+."; my(@b);for((join('.',1..100))=~m|((?:\d+\.?){10})|g ){my@c=split(/\./);push(@b,\@c);}my($a,$x,$y)=(80,0 ,0);for(split(//,$prog)){if('v'eq$_){$y=($y+1)%10;} if('>'eq$_){$x=($x+1)%10;}if('+'eq$_){$a+=$b[$y]->[ $x ];}if('^'eq$_){$y=($y-1)%10;}if('-'eq$_){$a-=$b[ $y]->[$x];}if('.'eq$_){print(chr($a));}if('<'eq$_){ $x=($x-1)%10;}}

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: obfuscated [id://151376]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-06-14 23:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.