Last active
July 26, 2016 11:53
-
-
Save Aha00a/65777f27cee828f3ea616c974f30d089 to your computer and use it in GitHub Desktop.
translate https://gist.github.com/ziozzang/da78d8755d185f2ad0678713551580c9 into perl.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl -w | |
use strict; | |
use warnings; | |
use utf8; | |
binmode STDOUT, ":utf8"; | |
$|=1; | |
my @spin = split //, "⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏"; | |
my $i = 0; | |
while(1) { | |
print "$spin[$i++]\r"; | |
$i %= $#spin; | |
sleep 1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment