Hello list: I have the following code as part of my:
sub filter_bad_filename ($) { #blah, blah... use Socket; sub relayIsTrusted($) { my ($address) = @_; syslog('warning', "Address is $address"); my %trustedSubnets = ( # Looopback '127.0.0.1' => '255.255.255.255', # Home Network '192.168.1.0' => '0.255.255.255', }; my $trustedRelay = 0; my $addr = inet_aton $address; while (my ($networkString, $netmaskString) = each %trustedSubnets) { my $network = inet_aton $networkString; my $netmask = inet_aton $netmaskString; #md_syslog("warning","Network is $network, netmask is $netmask, addr is $addr"); if (($addr & $netmask) eq $network) { $trustedRelay = 1; last; } } return $trustedRelay; } Now, I am getting the following error on my maillog: Dec 15 07:08:13 vw02 mimedefang-multiplexor: Slave 0 stderr: Use of uninitialized value in concatenation (.) or string at /etc/mail/mimedefang-filter-10025 line 107. Dec 15 07:08:13 vw02 mimedefang.pl[27338]: Address is Dec 15 07:08:13 vw02 mimedefang-multiplexor: Slave 0 stderr: Use of uninitialized value in subroutine entry at /etc/mail/mimedefang-filter-10025 line 163. Dec 15 07:08:13 vw02 mimedefang-multiplexor: Slave 0 stderr: Use of uninitialized value in bitwise and (&) at /etc/mail/mimedefang-filter-10025 line 167. Dec 15 07:08:13 vw02 mimedefang-multiplexor: Slave 0 stderr: Use of uninitialized value in bitwise and (&) at /etc/mail/mimedefang-filter-10025 line 167. Use of uninitialized value in bitwise and (&) at /etc/mail/mimedefang-filter-10025 line 167. Use of uninitialized value in bitwise and (&) at /etc/mail/mimedefang-filter-10025 line 167. Use of uninitialized value in bitwise and (&) at /etc/mail/mimedefang-filter-10025 line 167. Use of uninitialized value in bitwise and (&) at /etc/mail/mimedefang-filter-10025 line 167. Use of uninitialized value in bitwise and (&) Dec 15 07:08:13 vw02 mimedefang-multiplexor: Slave 0 stderr: . Use of uninitialized value in bitwise and (&) at /etc/mail/mimedefang-filter-10025 line 167. Use of uninitialized value in bitwise and (&) at /etc/mail/mimedefang-filter-10025 line 167. Use of uninitialized value in bitwise and (&) at /etc/mail/mimedefang-filter-10025 line 167. Use of uninitialized value in bitwise and (&) at /etc/mail/mimedefang-filter-10025 line 167. Use of uninitialized value in bitwise and (&) at /etc/mail/mimedefang-filter-10025 line 167. Use of uninitialized value in bitwise and (& Could somebody point me to the problem with my code? Thanks in advance, Ronald Vazquez _______________________________________________ Visit http://www.mimedefang.org and http://www.canit.ca MIMEDefang mailing list [EMAIL PROTECTED] http://lists.roaringpenguin.com/mailman/listinfo/mimedefang