Skip Menu |
 

This queue is for tickets about the autodie CPAN distribution.

Report information
The Basics
Id: 70545
Status: open
Priority: 0/
Queue: autodie

People
Owner: Nobody in particular
Requestors: oleg [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 2.10
Fixed in: (no value)



Subject: Undefined subroutine Module::xxx when xxx exists in the CORE namespace
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 448
Download (untitled) / with headers
text/plain 448b
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; }
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.16-23834-1381659675-1159.70545-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 306
Download (untitled) / with headers
text/plain 306b
On Sun Aug 28 05:06:24 2011, OLEG wrote: Show quoted text
> 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


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.