Thanks Steve, that seemed to do the trick. Perhaps my reading comprehension was not up to par when I was reading up on these operators.
I figured AND(&&) operators had to match both conditions in order to be true, hence me trying to use OR(||). I guess it's the opposite? -CM On Tue, Nov 24, 2009 at 12:03 PM, Steve Bertrand <st...@ibctech.ca> wrote: > Chad Morland wrote: > > I have a feeling I am missing something basic so I am looking to this > list > > for help. > > > > Assume the following: > > > > my $vhost_server_name = qw(somedomain.com); > > my @vhost_server_alias_array = qw(www.somedomain.com *.somedomain.com > > sub.somedomain.com); > > > > foreach my $vhost_server_alias (@vhost_server_alias_array) { > > if (($vhost_server_alias ne "www.$vhost_server_name") || > > Replace your || (or) with && (and): > > "vhost.pl" 15L, 427C written > > acct-dev: ISP % ./vhost.pl > Does not equal somedomain.com sub.somedomain.com > > Steve >