Help for this page

Select Code to Download


  1. or download this
    Initialising...\n
    Progress: 0%\r
    Progress: 1%\r
    Progress: 2%\r
    Progress: 3%\r
    
  2. or download this
    sub io_cb {
      my $fh = shift;
    ...
      my $line = <$fh>; # blocks until there is a \r
      # update progress bar with $line
    }