in reply to Re: function chdir in Module Cwd broken?
in thread function chdir in Module Cwd broken?
use Some::Module (); # Don't import anything here. # ---------- package Package1; use Some::Module qw( ... ); # import something ... # ---------- package Package2; use Some::Module qw( ... ); # import something ... # ---------- package main; { ... main program ... }
One could argue this should be split into multiple files, but you'd still be including the Some::Module more than once.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Using the same module twice
by Aighearach (Initiate) on Nov 08, 2004 at 21:04 UTC |