$hostcache{$&} ||= gethostbyaddr($&, 'tcp'); if ( defined $hostcache{$&} ) { ...