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.
In reply to inconsistent module access by geoffleach
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |