in reply to Exporter collision detection
It does.
>type ModA.pm package ModA; use Exporter qw( import ); @EXPORT = qw( foo ); sub foo { print __PACKAGE__, "\n" } 1; >type ModB.pm package ModB; use Exporter qw( import ); @EXPORT = qw( foo ); sub foo { print __PACKAGE__, "\n" } 1; >perl -we"use ModA; use ModB;" Subroutine main::foo redefined at c:/Progs/perl5101/lib/Exporter.pm li +ne 67. at -e line 1
You need to turn on warnings if you want warnings.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Exporter collision detection
by Anonymous Monk on Sep 28, 2009 at 22:39 UTC |