pcs305 has asked for the wisdom of the Perl Monks concerning the following question:
I have these 2 lines in separate sections in a report:
"QR No N/A 1 1 1 0 0 0 0 0 0" "QR 1 1 1 0 157M 23:09:15.190448 00:42:28.205336 00:40:04.086054"
I find the strings using regex, then split them by \/+\ into 2 arrays. Then the arrays are joined after dropping the first 4 values in the second string.
My problem is the 157M value. I need to find the best way to detect and then multiply the 157 by 1000000 and then have that value in the array.
Should I do that in the string? Or after the split to array? (how would I loop the array, change the value?)
Thank you. (NOTE: I'm a mainframe sysprog,HL Assembler is my first language.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Find and change value.
by ikegami (Patriarch) on May 29, 2009 at 20:47 UTC | |
|
Re: Find and change value.
by baxy77bax (Deacon) on May 29, 2009 at 21:09 UTC | |
|
Re: Find and change value.
by DStaal (Chaplain) on May 29, 2009 at 20:59 UTC |