in reply to Way of the Spinner (repost)
Please do a super search on "spinner". You will find a variety of solutions. :-)use Tie::Cycle; tie my $spinner, 'Tie::Cycle', [map "\b$_",qw(\ | / -)]; print $spinner while (1);
Its your call as to whether yours or mine or anyone elses is better. Probably depends on the circumstances. IMO however its hard to improve on the Tie::Cycle version, if only because it generalizes the entire thing to about as abstract a level as can be done, which of course maximizes the possibility of code reuse.
Cheers,
--- demerphq
my friends call me, usually because I'm late....
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Way of the Spinner (repost)
by TheDamian (Vicar) on Jan 18, 2003 at 19:06 UTC | |
by !unlike (Beadle) on Jan 23, 2003 at 09:08 UTC | |
by demerphq (Chancellor) on Jan 20, 2003 at 16:08 UTC | |
|
Re: Re: Way of the Spinner (repost)
by HamNRye (Monk) on Jan 17, 2003 at 22:07 UTC | |
by Anonymous Monk on Jan 18, 2003 at 03:59 UTC | |
by joeface (Pilgrim) on Jan 18, 2003 at 04:09 UTC | |
by demerphq (Chancellor) on Jan 20, 2003 at 15:55 UTC |