<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>


<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
} </style>Olá,<br><br>Acabo de me inscrever na lista porque tenho algumas dúvidas básicas sobre Perl. Estou começando a aprender a linguagem porque tenho interesse em bioinformática e Perl me pareceu muito interessante para a área. Bom, estou com uma dúvida básica e não sei se este é o meio adequado para resolvê-la, mas vamos lá. Comecei a fazer alguns programas e usando o comando open para abrir um arquivo, me aparece a seguinte mensagem de erro:<br><br><br>syntax error at read_prot.pl line 12, near "open"<br>Execution of read_prot.pl aborted due to compilation errors.<br><br><br>O programa que escrevi é do exemplo 4.5 do livro Beginning Perl for Bioinformatics:<br><br>#!usr;bin;perl -w<br># Reading protein sequence data from a file<br><br># The filename of the file containing the protein sequence data<br><br>$proteinfilename = 'NM_021964fragment.pep'<br><br># First, we have to open the file and associate<br># a filehandle to it. We choose filehandle <br># PROTEINFILE for readability.<br><br>open PROTEINFILE, $proteinfilename or die $!;<br><br># Now we do the actual reading of the protein sequence data<br># from the file by using the angle brackets &lt;&gt; to get the input <br># from the filehandle. We store our data into our variable $protein<br><br>$protein = &lt;PROTEIN&gt;;<br><br># Now that we've got our data, we can close the file<br><br>close PROTEIN;<br><br># Print the DNA onto the screen<br><br>print "Here is the protein:\n\n";<br>print $protein, "\n\n";<br><br>exit;<br><br><br>e o arquivo 'NM_021964fragment.pep' contém uma sequência com letras de aminoácidos que compõem uma proteína. Uso um computador IBM pentium 4 com Windows XP Home. Não sei o que há de errado, alguém pode me ajudar a resolver este problema<a href="http://mail.pm.org/pipermail/saopaulo-pm/2008/002720.html">?
</a><a name="2720"></a><br><br>Obrigado,<br>Alexandre<br>&nbsp;<br><br /><hr />Discover the new Windows Vista <a href='http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE' target='_new'>Learn more!</a></body>
</html>