in reply to Re: Printing to stdout an array of strings and scalar references
in thread Printing to stdout an array of strings and scalar references
Hi Laurent_R
Thanks for the feedback, I had considered building the entire output within the subroutine, however I have a requirement be able to modify the output based on the command line option chosen, for example on one run I may need the progress indication to be
then on the next run the verbose switch may be selected so I might needProcessing: 42 files to process ; 6 files completed
Using the array method I am currently looking at lets me just push the required reporting output into the array as I am processing the CLI options which seemed to me to be more efficient than reprocessing the CLI options every time I need to update the progress indicator.Processing: 42 files to process ; 2 files excluded ; 6 files completed
Regardless I value the time you have taken to review and make suggestions, Thankyou.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Printing to stdout an array of strings and scalar references
by Laurent_R (Canon) on Oct 25, 2017 at 07:45 UTC |