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

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

  • Comment on Re^11: "Undefined subroutine &main::pcap_lookupdev called" yet module installed and PERL5LIB is set correctly : *(
  • Select or Download Code

Replies are listed 'Best First'.
Re^12: "Undefined subroutine &main::pcap_lookupdev called" yet module installed and PERL5LIB is set correctly : *(
by stevehicks (Sexton) on Jun 11, 2009 at 08:42 UTC
    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...