Difference between revisions of "Exercise 4.2"

From Earlham CS Department
Jump to navigation Jump to search
(New page: Return to Week 1 '''Exercise 4.2 in <i>Beginning Perl for Bioinformatics</i>''' <nowiki>#!/usr/bin/perl -w use strict;</nowiki> <nowiki> #Erika Phelps #Sept 20, 2009 #Exercise 4.2</n...)
(No difference)

Revision as of 23:43, 20 September 2009

Return to Week 1

Exercise 4.2 in Beginning Perl for Bioinformatics

#!/usr/bin/perl -w use strict; #Erika Phelps #Sept 20, 2009 #Exercise 4.2 #Write a program that stores an integer in a variable and prints it out.

#Storing the integer my $variable = '4';

#Printing it out

print "The variable is $variable.\n";

exit;