Skip Menu |

This queue is for tickets about the Sub-Current CPAN distribution.

Report information
The Basics
Id: 53568
Status: new
Priority: 0/
Queue: Sub-Current

People
Owner: Nobody in particular
Requestors: l.mai [...] web.de
Cc:
AdminCc:

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



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__