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

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