Blizzardo1 icon

Perl Example

Blizzardo1 | PRO | 07/24/14 09:20:18 AM UTC | 0 ⭐ | 809 👁️ | Never ⏰ | []
Perl |

280 B

|

None

|

0 👍

/

0 👎

 #!/usr/bin/perl
 use strict;
 use warnings;
 use IO::Handle;
 
 my ( $remaining, $total );
 
 $remaining = $total = shift(@ARGV);
 
 STDOUT->autoflush(1);
 
 while ( $remaining ) {
  printf ( "Remaining %s/%s \r", $remaining--, $total );
  sleep 1;
 }
 
 print "\n";

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎