Could anyone help me (dunnoanythingaboutfortran'nverylittleaboutperl) translating this recursive perl-lines into fortran?
$u = "abc";
while($u ~~ m/abc/)
{
$u =~ s/abc/abc bcd cde/
}
These lines replace within the variable "$u" the letters "abc" ("...s/abc/...") by "abc bcd cde" as long as $u contains "abc" ("while ...").
Why I need the translation and why I do not figure it out myself, as it obviously seems to be an easy practice task? Becaaaaause I am not a good programmer. In fact I am not even a bad programmer. I am one of these guys to testandtestandtestanddebugandtest until it works. I would need some fortran interpreter or compiler to translate the code. But that would be an overkill...
... sooooooooo: Could anyone help me?
nixwisser
$u = "abc";
while($u ~~ m/abc/)
{
$u =~ s/abc/abc bcd cde/
}
These lines replace within the variable "$u" the letters "abc" ("...s/abc/...") by "abc bcd cde" as long as $u contains "abc" ("while ...").
Why I need the translation and why I do not figure it out myself, as it obviously seems to be an easy practice task? Becaaaaause I am not a good programmer. In fact I am not even a bad programmer. I am one of these guys to testandtestandtestanddebugandtest until it works. I would need some fortran interpreter or compiler to translate the code. But that would be an overkill...
... sooooooooo: Could anyone help me?
nixwisser