The tutor explains a few details about yesterday’s program. The program, with the while loop and its support code added in orange, is as follows: #!/usr/bin/perl %maritimecapitals=(‘NB’,’Fredericton’,’NS’,’Halifax’,’PEI’,’Charlottetown’); $prov = ‘Y’; while($prov ne ‘X’ && $prov ne ‘x’){ print “Hello. Which …

Perl: some explanation of yesterday’s while loop Read more »