in reply to Re: What happens when you load the same module twice?
in thread What happens when you load the same module twice?
That should appropriately fix things.Will it? Sure, you don't get warnings if you do:
as the second use will not do anything. But if you remove the first one, or if you swap the two statements, File::Basename->import() won't be called, as Perl will try to call File::BaseName->import(), which doesn't exists so Perl will silently go on.use File::Basename; use File::BaseName;
This will lead to mysterious behaviour, that may be hard to debug.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: What happens when you load the same module twice?
by revdiablo (Prior) on Feb 10, 2005 at 18:05 UTC | |
by Anonymous Monk on Feb 11, 2005 at 09:31 UTC |