Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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: (4)
As of 2015-08-01 02:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (285 votes), past polls