Example script:package popchar; use strict; sub new { bless { chars => [qw( | / - | - \ )] },$_[0]; } sub pc { $_[0]->{char} = shift(@{$_[0]->{chars}}); push(@{$_[0]->{chars}},$_[0]->{char}); return($_[0]->{char}); } 1;
#!/usr/bin/perl -w use strict; $|=1; use popchar; my($pch) = popchar->new; while(1) { print "\rLoading ".$pch->pc(); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Quite possibly the stupidest perl module ever written :)
by japhy (Canon) on Sep 22, 2000 at 05:23 UTC | |
|
RE: Quite possibly the stupidest perl module ever written :)
by ZZamboni (Curate) on Sep 22, 2000 at 05:06 UTC | |
|
RE (tilly) 1: Quite possibly the stupiest perl module ever written :)
by tilly (Archbishop) on Sep 20, 2000 at 23:32 UTC | |
by tye (Sage) on Sep 20, 2000 at 23:34 UTC | |
|
RE: Quite possibly the stupiest perl module ever written :)
by turnstep (Parson) on Sep 20, 2000 at 05:17 UTC | |
by lindex (Friar) on Sep 21, 2000 at 01:34 UTC |