In reply-to [EMAIL PROTECTED] on Tue Jul 17 16:24:55 2001
>On Jul 17, [EMAIL PROTECTED] said:
>
>>      $reason2        = @theline[$headers{"reason\:"}];
>>      $s_port         = @theline[$headers{"s_port"}];
>
>You should be warning about using @ when you should be using $.
>
>>      if(($reason2 ne "unknown established TCP packet") and ($s_port ne 
>"nameserver")) 
>
>They might have been assigned values above, but those values are
>undefined, thus the error message.
>

Ok, I didn't get a warning on the @theline[ but I changed it anyway.   Same problem.

$headers{"s_port"} definitely contains a value, lets say 12

@theline is generated from a split of a line from a delimited file.  Some of the 
fields are empty, so you get two delimiters without content between them.

$theline[12] may or may not contain a value, but would have been initialised during 
the split I would have thought.  In this instances it is much more likely that it 
contains data.

So what am I missing?







 


------------------------------------------------
Global WebMail -
  Delivered by Global Internet www.global.net.uk
------------------------------------------------




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to