geoffleach has asked for the wisdom of the Perl Monks concerning the following question:
Fiddling around in the debugggerDanBongino::_get(/home/geoff/Perl/newmod/DanBongino.pm:54): 54: my $data = io( $url )->slurp; DB<10> s Undefined subroutine &DanBongino::io called at /home/geoff/Perl/newmod +/DanBongino.pm line 54. at /home/geoff/Perl/newmod/DanBongino.pm line 54. DanBongino::_get("https://feeds.megaphone.fm/WWO3519750118/") call +ed at /home/geoff/Perl/newmod/DanBongino.pm line 71 DanBongino::Get() called at NewFetchPodcast.pl line 92 Getopt::Auto::CODE(0x55a5417cc5e0)(/usr/local/lib64/perl5/5.34/Getopt/ +Auto.pm:120):
In both cases the modules are executed with this code in a given-whenDanBongino::_get(/home/geoff/Perl/newmod/DanBongino.pm:54): 54: my $data = io( $url )->slurp; DB<12> io('foo') Undefined subroutine &DanBongino::io called at (eval 30)[/usr/share/pe +rl5/perl5db.pl:741] line 2. DB<13> IO::All::io('foo') Can't locate object method "_package" via package "foo" (perhaps you f +orgot to load "foo"?) at /usr/share/perl5/vendor_perl/IO/All.pm line +63.
use IO::All; is present in both cases.{ require DanBongino; $shows = DanBongino::Get() };
Assistance most greatfully received.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: inconsistent module access
by choroba (Cardinal) on Jun 24, 2022 at 22:57 UTC | |
by geoffleach (Scribe) on Jun 25, 2022 at 04:17 UTC | |
by haukex (Archbishop) on Jun 25, 2022 at 06:28 UTC | |
by LanX (Saint) on Jun 25, 2022 at 10:18 UTC | |
by geoffleach (Scribe) on Jun 25, 2022 at 03:28 UTC | |
by marto (Cardinal) on Jun 28, 2022 at 09:06 UTC | |
by Aldebaran (Curate) on Jun 28, 2022 at 07:20 UTC | |
by hippo (Archbishop) on Jun 28, 2022 at 09:01 UTC |