a rami | :םש |
---|---|
23:22 20/09/01 | :ךיראת |
its a bug | :אשונ |
the thing is there is no problem with the regexp but with the loop. in the (original) loop "abcde" is
replaced by "1" in the first round. therefore in the second round "abcd" just is not found, so it cannot
be replaced.
for($i=1;$i<=5;$i++){
$template="aaaabcdaaa";
print $i."\n";
$template =~ s/abcd/$i/;
print "This is template: $template \n---------------------\n";
}