Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined subroutine Module::xxx when xxx exists in the CORE namespace [rt.cpan.org #70545] #98

Closed
toddr opened this issue Jan 16, 2020 · 1 comment

Comments

@toddr
Copy link
Collaborator

toddr commented Jan 16, 2020

Migrated from rt.cpan.org#70545 (status was 'open')

Requestors:

From [email protected] on 2011-08-28 09:06:24
:

Here is a simple examle which works good without autodie and dies with
message "Undefined subroutine &Config::Simpliest::read called" when
using autodie:

package main;

my $cfg = Config::Simpliest::read("/tmp/t.txt");

package Config::Simpliest;

use strict;
use autodie;

sub read {
	my $fname = shift;
	open my $fh, $fname;
	
	my %cfg;
	while (<$fh>) {
		chomp;
		my ($k, $v) = split /\s*=\s*/;
		$cfg{$k} = $v;
	}
	
	close $fh;
	return \%cfg;
}

From [email protected] on 2013-10-13 10:21:15
:

On Sun Aug 28 05:06:24 2011, OLEG wrote:
> Here is a simple examle which works good without autodie and dies with
> message "Undefined subroutine &Config::Simpliest::read called" when
> using autodie:
> 
> [...]

Seems related to github issue #11[1].

~Niels

[1] https://github.com/pjf/autodie/issues/11



@toddr
Copy link
Collaborator Author

toddr commented Jan 16, 2020

I'm closing this in deference to #11

@toddr toddr closed this as completed Jan 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant