|
||||||||||||
|
|
L.1. Analyzing ScriptsExamine the following script. Run it, then explain what it does. Annotate the script and rewrite it in a more compact and elegant manner.
--- A reader sent in the following code snippet.
--- Analyze Example A-11, and reorganize it in a simplified and more logical style. See how many of the variables can be eliminated, and try to optimize the script to speed up its execution time. Alter the script so that it accepts any ordinary ASCII text file as input for its initial "generation". The script will read the first $ROW*$COL characters, and set the occurrences of vowels as "living" cells. Hint: be sure to translate the spaces in the input file to underscore characters. | |||||||||||
|
||||||||||||