in reply to Re^9: "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 : *(

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.
  • Comment on Re^10: "Undefined subroutine &main::pcap_lookupdev called" yet module installed and PERL5LIB is set correctly : *(

Replies are listed 'Best First'.
Re^11: "Undefined subroutine &main::pcap_lookupdev called" yet module installed and PERL5LIB is set correctly : *(
by ikegami (Patriarch) on Jun 11, 2009 at 06:43 UTC

    "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" }).

      sorry, in my happiness I missed the fact that the long names should still work, thanks for pointing that out. I've got no idea why they don't work tho...