in reply to Re: User Feedback for Subroutines with Long Execution Time
in thread User Feedback for Subroutines with Long Execution Time
sub statusPrint { # code to update status print shift; } sub longprocess { my &status = shift; #do stuff &status("10%"); #more stuff &status("20%"); } call it with: longprocess (\&statusPrint);
|
|---|