Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Progress Bar in Perl script

by kcott (Archbishop)
on Jul 08, 2012 at 21:30 UTC ( [id://980627]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -Mstrict -Mwarnings -e '
    use Smart::Comments;
    ...
        qx{ls -l > /dev/null 2>&1};
    }
    '
    
  2. or download this
    #!/usr/bin/env perl
    
    ...
    
        print qq{\b*\nFinished.\n};
    }
    
  3. or download this
    $ pm_text_spinner_ryo.pl
    ------------------------------------------------------------
    ...
    Starting ...
    Running: *
    Finished.
    
  4. or download this
    sub run_with_progress {
        use Smart::Comments;
    ...
    
        return;
    }
    
  5. or download this
    $ pm_text_spinner_sc_spin.pl
    
    ...
                                                                         
    
    ### Finished.
    
  6. or download this
    sub run_with_progress {
        print q{-} x 60, qq{\nStarting ...\n};
    ...
    
        return;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://980627]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-04-19 22:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found