Is there a logic error in there?
if ( exists $list{$location} ) { my $value = $list{$location}; $value++; $list{$location} = $value; # if $list{$location} doesn't exist then it always eq '' ? # } elsif ( $list{$location} eq "" ) { # test $location instead? } elsif ( $location eq "" ) { if ( exists $list{Unknown} ) { my $value = $list{Unknown}; $value++; $list{Unknown} = $value; } else { $list{Unknown} = "1"; } } else { $list{$location} = "1"; }
cheers,
J
In reply to Re: $ENV{HTTP_REFERER}; not showing up
by edoc
in thread $ENV{HTTP_REFERER}; not showing up
by sulfericacid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |