<?xml version="1.0" encoding="windows-1252"?>
<node id="1016051" title="Re: PROTEIN FILE help me pleaseee" created="2013-01-30 07:19:16" updated="2013-01-30 07:19:16">
<type id="11">
note</type>
<author id="832495">
choroba</author>
<data>
<field name="doctext">
What do you mean by "doesn't work"? Is the number of F's too big? Does the program output any error messages?&lt;p&gt;
When glaring at your script, I can see that
&lt;ul&gt;
&lt;li&gt;you do not [doc://chomp] the $proteinfilename after reading it from STDIN. The real file name probably does not contain a newline at the end.

&lt;li&gt;if the open is not successful, your program continues. Are you really interested in the results, if the file cannot be found? Use the idiom &lt;c&gt;
open my $FH, '&lt;', $filename or die "Cannot open: $!";
&lt;/c&gt;

&lt;li&gt;[doc://next] takes a label as a parameter. There are no labels in your code.

&lt;li&gt;you do not indent the code. Once you are advanced enough to use loops, please also learn to indent the code. Without indentation, your code becomes write-only, unreadable mess for humans.

&lt;/ul&gt;

&lt;!-- Node text goes above. Div tags should contain sig only --&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-832495"&gt;

&amp;#1604;&amp;#1405;&amp;#4285;† &amp;#6514;&amp;#6482;&amp;#9898;&amp;#10186;&amp;#4281;&amp;#5651;&amp;#5511; &amp;#5045;&amp;#5651;&amp;#5511;&amp;#9137; &amp;#4281;&amp;#6514;&amp;#119243;&amp;#409;&amp;#5651;&amp;#5511;
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
1016025</field>
<field name="parent_node">
1016025</field>
</data>
</node>
