I'd guess that either $sitename or $ENV{'id'} is undefined. You can check using defined:
if( ! defined $sitename ) { # do something (initialize? skip 'eq' tests?) }
Update: Oh, and the 'error' you cite isn't an error, it's a warning. See "Use of uninitialized value%s" in perldiag.
In reply to Re: Use of uninitialized value in string eq
by bobf
in thread Use of uninitialized value in string eq
by maxcross7
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |