CSE 305 Programming Languages Fall, 2003 Professor Shapiro Homework 10 Maximum Points: 12 Due 9:00 am, Tuesday, November 25, 2003 Copy this file to a text file named hw10.txt, edit into it your answers, and submit the file via the submit program by the deadline given above. 1. (6) Design a small Perl test program to see if our Perl compiler uses in, out, or inout mode for passing parameters. Include below this paragraph: a) your program; b) a copy of your test compile-and-run; c) your conclusion. 2. (6) The text says, "In most Fortran implementations before Fortran 77, parameters were passed by reference. In later implementations, however, pass-by-value-result has been frequently used for simple variable parameters" [p. 368]. Consider a Fortran subroutine, Testit(n,m), called with the statement Call Testit(i,i). If Fortran is using call-by-reference, then, in the body of Testit, n and m will be aliases of each other. However, if Fortran is using call-by-value-result, then n and m will not be aliases. Use this idea to test if the three Fortran compilers we have use call-by-reference or call-by-value-result. Include below this paragraph: a) your program; b) a copy of your test compile-and-run for f77, f90, and f95; c) your conclusion about the three Fortran compilers.