<?xml version="1.0" encoding="windows-1252"?>
<node id="1014921" title="newbie1991's scratchpad" created="2013-01-23 10:01:12" updated="2013-01-23 10:01:12">
<type id="182711">
scratchpad</type>
<author id="1014920">
newbie1991</author>
<data>
<field name="doctext">
&lt;code&gt;

print "Enter the file containing the amino acid sequence \n";
my $filename = &lt;STDIN&gt;;
chomp $filename;

unless (open(FILENAME, $filename))
	{
		print "File $filename not found. Exiting program \n";
		exit;
	}

my @AASeq=&lt;FILENAME&gt;;
close FILENAME;
my $AASeq = join('', @AASeq);
$AASeq =~ s/\s//g;
my $length = length $AASeq;

&lt;/code&gt;</field>
</data>
</node>
