in reply to Re: Why " subroutined redefined" warning comes?
in thread Why " subroutined redefined" warning comes?
and you don't have a duplicate. Depending on the internals of Spinner, you may be able to do:use Spinner.pm; for (1 .. 1000) { Spinner::spin(); } sub spin { print "i am the second spin() sub\n"; }
to stop it importing into the MAIN namespace.use Spinner();
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Why " subroutined redefined" warning comes?
by joeface (Pilgrim) on Nov 04, 2006 at 20:44 UTC | |
by Fletch (Bishop) on Nov 05, 2006 at 00:35 UTC |