Yes, I did have that typo in my script.  I fixed it but I am still never
seeing anything print out that says "I have a match" as the first if control
should do.  It seems the syntax is wrong somehow.


-----Original Message-----
From: Timothy Johnson [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 03, 2006 1:25 AM
To: Angus; beginners@perl.org
Subject: RE: problems with logical && (and) statement

Is the typo "$dhcp{$wrkst}-{network}" in your production script?

-----Original Message-----
From: Angus [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 03, 2006 1:08 AM
To: beginners@perl.org
Subject: problems with logical && (and) statement

Hi,

 

I have been working on a writing a script to compare host information
from
two different sources looking for differences.  So far it is working
fairly
well except the final logical && statement seems to fail.  The two
things I
am trying to check for is if the host is on the same network in both
lists,
and then I am checking to see if it is the same subnet in both lists.
This
is the particular line that is failing:

if(($dhcp{$wrkst}-{network} eq $ipdb{$wkrst}->{network}) &&
($dhcp{$wrkst}->{subnet} eq $ipdb{$wkrst}->{subnet})) 

 

And here is the script in its entirety so far.  

 

<snip>



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to