<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.cs.earlham.edu/index.php?action=history&amp;feed=atom&amp;title=Exercise_4.3_D</id>
	<title>Exercise 4.3 D - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.cs.earlham.edu/index.php?action=history&amp;feed=atom&amp;title=Exercise_4.3_D"/>
	<link rel="alternate" type="text/html" href="https://wiki.cs.earlham.edu/index.php?title=Exercise_4.3_D&amp;action=history"/>
	<updated>2026-08-11T01:16:21Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://wiki.cs.earlham.edu/index.php?title=Exercise_4.3_D&amp;diff=10591&amp;oldid=prev</id>
		<title>Damian: New page: Return to Aug 30-Sept 5  &lt;pre&gt;  #!/usr/bin/perl -w  use strict;   #Damian Almiron  #Ex 4-3   #Pseudocode  #Write a program that prints DNA (that could be in either upper- or lower #cas...</title>
		<link rel="alternate" type="text/html" href="https://wiki.cs.earlham.edu/index.php?title=Exercise_4.3_D&amp;diff=10591&amp;oldid=prev"/>
		<updated>2009-12-18T16:22:14Z</updated>

		<summary type="html">&lt;p&gt;New page: Return to &lt;a href=&quot;/index.php/Aug_30-Sept_5&quot; title=&quot;Aug 30-Sept 5&quot;&gt;Aug 30-Sept 5&lt;/a&gt;  &amp;lt;pre&amp;gt;  #!/usr/bin/perl -w  use strict;   #Damian Almiron  #Ex 4-3   #Pseudocode  #Write a program that prints DNA (that could be in either upper- or lower #cas...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Return to [[Aug 30-Sept 5]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#!/usr/bin/perl -w&lt;br /&gt;
&lt;br /&gt;
use strict; &lt;br /&gt;
&lt;br /&gt;
#Damian Almiron&lt;br /&gt;
&lt;br /&gt;
#Ex 4-3 &lt;br /&gt;
&lt;br /&gt;
#Pseudocode&lt;br /&gt;
&lt;br /&gt;
#Write a program that prints DNA (that could be in either upper- or lower #case&lt;br /&gt;
#originally) in lowercase (actg).&lt;br /&gt;
&lt;br /&gt;
#Also, write a program that prints the DNA (that could be in either #upper- or &lt;br /&gt;
#ower #case originally) in uppercase (ACTG). Use the&lt;br /&gt;
&lt;br /&gt;
#function tr///. &lt;br /&gt;
&lt;br /&gt;
#The DNA variables (upper and lower case) &lt;br /&gt;
&lt;br /&gt;
my $DNA1 = &amp;#039;ACTGACTGACTGACTACTGACTGACTGACTG&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
my $DNA2 = &amp;#039;actgactgactgactgactgactgactgactgactg&amp;#039;; &lt;br /&gt;
&lt;br /&gt;
#Print the DNAs &lt;br /&gt;
&lt;br /&gt;
print &amp;quot;Here are our original DNA sequences in upper and lower case:\n\n&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;DNAuppercase:$DNA1.\n\n&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;DNAlowercase:$DNA2.\n\n&amp;quot;; &lt;br /&gt;
&lt;br /&gt;
#Make copies&lt;br /&gt;
&lt;br /&gt;
my $DNAU1 = $DNA1;&lt;br /&gt;
&lt;br /&gt;
my $DNAU2 = $DNA2;&lt;br /&gt;
&lt;br /&gt;
my $DNAL1 = $DNA1;&lt;br /&gt;
&lt;br /&gt;
my $DNAL2 = $DNA2; &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
#Turn both DNA strands in uppercase only and print. &lt;br /&gt;
&lt;br /&gt;
$DNAU1 =~ tr/ACGTacgt/ACGT/;&lt;br /&gt;
&lt;br /&gt;
$DNAU2 =~ tr/ACGTacgt/ACGT/; &lt;br /&gt;
&lt;br /&gt;
print &amp;quot;The DNA strands are in uppercase.\n\n�;&lt;br /&gt;
&lt;br /&gt;
print �DNA1:$DNAU1.\n\n&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
print �DNA2:$DNAU2.\n\n�; &lt;br /&gt;
&lt;br /&gt;
#Turn both DNA strands in lower case only and print.&lt;br /&gt;
&lt;br /&gt;
$DNAL1 =~ tr/ACGTacgt/acgt/;&lt;br /&gt;
&lt;br /&gt;
$DNAL2 =~ tr/ACGTacgt/acgt/; &lt;br /&gt;
&lt;br /&gt;
print &amp;quot;The DNA strands are in lowercase.\n\n&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
print �DNA1:$DNAL1.\n\n&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
print �DNA2:$DNAL2.\n\n�; &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
#The End &lt;br /&gt;
&lt;br /&gt;
exit;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Damian</name></author>
	</entry>
</feed>