in reply to Quite possibly the stupidest perl module ever written :)

I'd rewrite it using overload:
package whirly; use overload ('""' => \&nextchar, fallback => 1); use strict; sub new { bless [ '|', '/', '-', '\\' ] } sub nextchar { push @{ $_[0] }, shift @{ $_[0] }; return $_[0][0]; }
Used like so:
use whirly; $waiting = new whirly; until (file_downloaded()) { print $waiting; }


$_="goto+F.print+chop;\n=yhpaj";F1:eval