Created
September 28, 2012 14:55
-
-
Save sashaphanes/3800373 to your computer and use it in GitHub Desktop.
UserinputDNA
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
print "Which sequence would you like to view?\n\n"; | |
my $DNAfilename = <>; | |
open(DNAfile, $DNAfilename); | |
my $DNA = <DNAfile>; | |
close DNAfile; | |
print "DNA sequence:\n\n$DNA"; | |
exit; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment