in reply to Undefined Subroutine & Global symbol requires explicit package name
Undefined subroutine &main::inet_aton called at dnscheck.pl line 15.Hmmmm..... What exactly is unclear in this error message? It is pretty much plain English.
In case you wonder about the &main:: part: Subroutine names in Perl always belong to some package. If you don't write your own package definition, Perl assumes that you are in package main. Hence, Perl looks for the subroutine inet_aton in Package main.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Undefined Subroutine & Global symbol requires explicit package name
by jaldama (Acolyte) on Jan 24, 2012 at 16:27 UTC | |
by tobyink (Canon) on Jan 24, 2012 at 16:48 UTC | |
by lune (Pilgrim) on Jan 24, 2012 at 18:31 UTC |