Just another Perl-doodle that I thought I'd post.

I believe it might have been harder to accomplish without an OO design.

package Q;sub n{my$l=$_[1];my$s;$l=~tr/A-Za-z/N-ZA-Mn-za-m/;$s->{S}=[ $l=~/[a-z]/?'a'..$l:$l=~/[A-Z]/?'A'..$l:$l];$s->{L}=$l;bless$s,$_[0]} sub g{shift(@{$_[0]->{S}})||$_[0]->{L}}1;package main;;$|++;push @p,Q ->n($_)for split//,q!Whfg nabgure Crey unpxre.!;for('A'..'Z'){print$_ ->g()for@p;select$b,$b,$b,.18;print"\r"}

Enjoy!


Dave

Replies are listed 'Best First'.
Re: ASCII Spindles
by vandaleer (Initiate) on Jun 01, 2004 at 12:56 UTC
    Very nice. I do not understand much of it but I like it.

    The final result is overwritten by (my) BASH's PROMPT_COMMAND though.