Think about Loose Coupling | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
My personal favorite (which is basically a cleaner implementation of what you have above) is
Please do a super search on "spinner". You will find a variety of solutions. :-) 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 In reply to Re: Way of the Spinner (repost)
by demerphq
|
|