Advertisement
Blizzardo1

Perl Example

Jul 24th, 2014
338
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.28 KB | None | 0 0
  1.  #!/usr/bin/perl
  2.  use strict;
  3.  use warnings;
  4.  use IO::Handle;
  5.  
  6.  my ( $remaining, $total );
  7.  
  8.  $remaining = $total = shift(@ARGV);
  9.  
  10.  STDOUT->autoflush(1);
  11.  
  12.  while ( $remaining ) {
  13.   printf ( "Remaining %s/%s \r", $remaining--, $total );
  14.   sleep 1;
  15.  }
  16.  
  17.  print "\n";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement