Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Ovid (2709)

  (email not shown publicly)
AOL IM: ovidperl (Add Buddy, Send Message)

Stuff with the Perl Foundation. A couple of patches in the Perl core. A few CPAN modules. That about sums it up.

Journal of Ovid (2709)

Wednesday December 19, 2007
11:34 AM


[ #35151 ]

We have a new module in our repository. Here's the complete source code (minus the docs):

package UNIVERSAL::can;

This is due to the following bug:

$ perl  -MUNIVERSAL::can -w -e 'use Template::Timer'
Died at /home/poec01/branches/envscript/deps/perl5lib//Template/ line 63.
Compilation failed in require at -e line 1.
BEGIN failed--compilation aborted at -e line 1.

The offending line in Template::Timer which dies (with a less than helpful error message, though it's understandable why the author felt this would never really fail):

my $super = __PACKAGE__->can("SUPER::$sub") or die;

Sorry chromatic. I quite sympathize with the problem you're trying to solve and I agree that calling UNIVERSAL::can as a function is a bad thing which needs to stop, but globally altering behavior, even with the best of intentions, is simply too dangerous.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.