Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: making a spinner

by demerphq (Chancellor)
on Sep 22, 2001 at 20:44 UTC ( #114076=note: print w/ replies, xml ) Need Help??


in reply to making a spinner

Cool! Two uses for Tie::Cycle* in one day!
use Tie::Cycle; my $delay=5; tie my $spinner, 'Tie::Cycle', [map {("\b$_")x$delay}qw(\ | / -)]; print $spinner while (1);
:-)

Yves
--
You are not ready to use symrefs unless you already know why they are bad. -- tadmc (CLPM)
* and no I didn't write it... :-)

Comment on Re: making a spinner
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://114076]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (9)
As of 2016-05-24 20:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?