r/smallprog • u/mkoryak • Mar 12 '10
Perl: most useful program in the world
This should be added to all programs in the world
clear&&perl -e'$|=1;@l=qw{| / - \};while(){print qq{$l[$_++%@l]\x0d};select($z,$z,$z,.2(rand(2)*2))}'
0
Upvotes
2
u/mkoryak Mar 13 '10
this rotates a "line" at randomish speeds
3
u/tropin Mar 12 '10
It would be great if you explain what it does.
4
u/jab-programming Mar 13 '10 edited Mar 13 '10
perl 5.8.8 says
1
u/OmnipotentEntity Mar 12 '10
instead of using clear, can't you use \r?