<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div>Paree que falta o ";"&nbsp; depois de <br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br>$proteinfilename = 'NM_021964fragment.pep'<br><br>E bons trabalhos com perl!<br>Abração!<br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Mensagem original ----<br>De: Alexandre Tashima &lt;aktashi@hotmail.com&gt;<br>Para: saopaulo-pm@pm.org<br>Enviadas: Terça-feira, 22 de Julho de 2008 16:39:27<br>Assunto: [SP-pm] Ajuda básica<br><br><style>
.hmmessage P
{
margin:0px;padding:0px;}
body.hmmessage
{
FONT-SIZE:10pt;FONT-FAMILY:Tahoma;}
</style> 


<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 rel="nofollow" target="_blank" href="http://mail.pm.org/pipermail/saopaulo-pm/2008/002720.html">?
</a><a rel="nofollow" name="2720"></a><br><br>Obrigado,<br>Alexandre<br>&nbsp;<br><br><hr>Discover the new Windows Vista <a rel="nofollow" target="_blank" href="http://search.msn.com/results.aspx?q=windows+vista&amp;mkt=en-US&amp;form=QBRE">Learn more!</a></div></div></div><br>


      <hr size=1>Novos endereços, o Yahoo! que você conhece. <a href="http://br.rd.yahoo.com/mail/taglines/mail/*http://br.new.mail.yahoo.com/addresses">Crie um email novo</a> com a sua cara @ymail.com ou @rocketmail.com.</body></html>