start the file with:
package utils; #or whatever name you want
put your subroutines in the file:
sub foo() # for instance
{
}
end the file with:
1; # package should return true
then in other files, to access:
use utils; # at top of file
and:
foo(); # to access
or:
utils::foo();
On Sunday, June 23, 2002, at 03:47 PM, Hytham Shehab wrote:
> i think that writing a module is not my answere, i think it is a huge
> complicated answere for a simple question.
> all what i want is simply put all my used subroutines in a seperate files,
> then call the subroutine from that file whenever i want to use the
> subroutine, am i clear now?
> no redundency is my only target, thats it...
>
> thx v. much, specially Lundeen and drieux
>
> --
> Hytham Shehab
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]