Is it possible to substitue 1 value with 'n' number of values???

Light Poster
26Jul2011,22:43   #1
newbie_10's Avatar
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
ansh batra's Avatar
$a='FRSVTu_ORT_TRU';
$a=~ /[u]/;
for($i=0;$i<5;$i++)
{
print"$`$i$'\n";
}
everything is posible in perl