Ok, that make much more sense - I think. So, I guess, the outer 'if'
and 'else' statements get evaluated first. Then the inner 'if' can
proceed once all the lines of data were gathered in the outer 'else'
statement. This way the lines can be assigned as a key-value pair in
the hash. I guess the
> "Perl" == Perl Org <[EMAIL PROTECTED]> writes:
Perl> Several people responded individually with comments like this.
Perl> If the authors care, shouldn't they contact the ISP? I mean, I
Perl> can't police the internet single-handedly.
No, but you can have enough sense that if the ENTIRE WOR
Michael S. Robeson II wrote:
Which of the two "if" statements gets evaluated first? I am trying
to figure out "in english" what the "if" statements are actually
doing. Is it saying:
"If a line begins with ">bla-bla" and if $seq (which appears no
where else in the code other than " $seq="" ") ex
On 7/3/2004 4:38 AM, Randy W. Sims wrote:
Tidied up a little more:
Actually, I'd probably invert the condition to make it clearer that it's
accumulating multi-line sequences.
my( %pro, @names);
my( $name, $seq, $k );
while (defined( my $line = )) {
unless ($line =~ /^>(.+)/) {
chomp(
On 7/2/2004 10:25 PM, Michael S. Robeson II wrote:
Well yeah, the indentation makes it much more clearer. However, this
does not help me understand how the nested "if" statements are working.
Which of the two "if" statements gets evaluated first? I am trying to
figure out "in english" what the "
Well yeah, the indentation makes it much more clearer. However, this
does not help me understand how the nested "if" statements are working.
Which of the two "if" statements gets evaluated first? I am trying to
figure out "in english" what the "if" statements are actually doing. Is
it saying: