Example:
Input:
FRSVTu_ORT_TRU
Output:
FRSVT0_ORT_TRU
FRSVT1_ORT_TRU
FRSVT2_ORT_TRU
FRSVT3_ORT_TRU
is there a way to do this using perl scripting?
|
Light Poster
|
|
| 26Jul2011,22:43 | #1 |
|
Example:
Input: FRSVTu_ORT_TRU Output: FRSVT0_ORT_TRU FRSVT1_ORT_TRU FRSVT2_ORT_TRU FRSVT3_ORT_TRU is there a way to do this using perl scripting? |
|
Light Poster
|
|
| 3Aug2011,13:06 | #2 |
|
$a='FRSVTu_ORT_TRU';
$a=~ /[u]/; for($i=0;$i<5;$i++) { print"$`$i$'\n"; } everything is posible in perl
|