Sun Jan 10 13:46:40 2010l.mai [...] web.de - Ticket created
Subject:
Sub::Current doesn't complain about unknown import arguments
Date:
Sun, 10 Jan 2010 19:36:41 +0100
To:
bug-Sub-Current [...] rt.cpan.org
From:
Lukas Mai <l.mai [...] web.de>
Hi,
Sub::Current ignores its import arguments instead of throwing an exception
like all modules that use Exporter. This means you can write
'use Sub::Current qw(fiddlesticks whatever)' and it will "work". I think
this is at least bad style.
Here's a contrived example that silently fails:
#!perl
use Sub::Current
my $x = "ok";
print $x, "\n";
__END__