Exercise 5.1

From Earlham CS Department
Revision as of 15:27, 22 September 2009 by Charliep (talk | contribs)
Jump to navigation Jump to search

Return to Week 2 Exercise 5.1 in Beginning Perl for Bioinformatics

<source lang=perl>

  1. !/usr/bin/perl -w

use strict;

  1. Erika Phelps
  2. Sept. 21, 2009
  3. Exercise 5.1
  1. Write a nonhalting program.
  1. Define variables

my $var = 'DNA is COOL'; my $constant = '1';

  1. Create the while loop to be neverending...
   while($constant = '1'){
       print "$var!\n";

}

exit; </source>