in reply to Re^7: "Undefined subroutine &main::pcap_lookupdev called" yet module installed and PERL5LIB is set correctly : *(
in thread "Undefined subroutine &main::pcap_lookupdev called" yet module installed and PERL5LIB is set correctly : *(

Wow. That worked !! looking at the actual module itself I can see now that the sub names are not prefixed with "pcap_" as the documentation suggests. Thanks guys so very much for all your help. I really appreciate it. If you have any way I can donate a beer then just say the word : )))
  • Comment on Re^8: "Undefined subroutine &main::pcap_lookupdev called" yet module installed and PERL5LIB is set correctly : *(

Replies are listed 'Best First'.
Re^9: "Undefined subroutine &main::pcap_lookupdev called" yet module installed and PERL5LIB is set correctly : *(
by Anonymous Monk on Jun 11, 2009 at 04:39 UTC
      Good point; however the issue here isn't subs but functions. "pcap_lookupdev" isn't listed under functions in the source but "lookupdev" is. There's a big difference.

        "pcap_lookupdev" isn't listed under functions in the source but "lookupdev" is

        You are mistaken. pcap_lookdev is in both :functions (via @func_long_names) and in the namespace (via *{ __PACKAGE__ . "::pcap_$func" }).