I have always known that fortran programmers have no sense of humor ;)
Perl does that as a oneliner that fits on a tshirt! And with fortran you have to do all that formal programming stuff! Now I know why my father in law (old skul fortran programmer) does not take my efforts to learn perl...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.