How can you make an animated loading sign in Perl?
问题 I need to know how to make an animated loading sign in Perl for keeping people entertained while my program's checking for updates. I've already tried using print "."; sleep(0.1); print "."; but that doesn't seem to work. Somebody please help me! print "."; sleep(0.1); print "."; isn't working I just want the program to wait 1/10th of a second to print the next . 回答1: Using Time::HiRes for sub-second timing needs, a few ways use warnings; use strict; use feature 'say'; use Time::HiRes qw