RE: our..... Lou's code ( was: Need help with making a Modules )

2005-11-28 Thread Charles K. Clarkson
"main". If you are not using "strict" you don't need "our". : So if I run the mod as one big ad-in program to main : and not calling subs in the mod, I don't have to pass vars in the : ()'s? stats; : and not : stats::sub($var1, $var2, etc);

RE: Need help with making a Modules

2005-11-27 Thread Charles K. Clarkson
Lou Hernsen wrote: : I am trying to create a module that will print the Stats of the : player of my on line game. : all it should do is take the vars, do some calulations and print the : HTML : since the Stats is used in every time i don't want to duplicate it in : each

Re: Need help with making a Modules

2005-11-27 Thread Lou Hernsen
#x27;t get this to work I'll just leave the sub Stats() in each program and not worry about it. Thanks Lou - Original Message - From: "Charles K. Clarkson" <[EMAIL PROTECTED]> To: Sent: Sunday, November 27, 2005 12:46 AM Subject: RE: Need help with making a Modules

Re: Need help with making a Modules

2005-11-27 Thread Lou Hernsen
This small piece of the Stats sub calculates the speed at which you are traveling. I have in the main program. use stats and I call on it just like a regular sub Speed(); or should it be stats::Speed; When I call on the entire mod, i want the whole thing to run. I could just put all the sub

RE: Need help with making a Modules

2005-11-27 Thread Charles K. Clarkson
Lou Hernsen wrote: : I am studying modules.. I am seeking a mentor to help. What do you mean by "module"? I ask because many people have very different ideas about what one is. For example, some people think about a library. require 'my_perl_module.pl";

Re: Need help with making a Modules

2005-11-27 Thread David Dorward
On Sat, 2005-11-26 at 19:48 -0800, Lou Hernsen wrote: > I am studying modules.. perldoc perlmod (and perlmodlib, and perlmodstyle) > Do I need to pass vars into the mod? No, but you might need to pass them into subroutines you define in the module (depending on what you want to do). > Do i nee

Need help with making a Modules

2005-11-27 Thread Lou Hernsen
I am studying modules.. I am seeking a mentor to help. I have very simple questions like ... Do I need to pass vars into the mod? Do i need to declare vars in the mod? What is "our"? something like "my" and "local"? Do I need to return vars? The code I am writing creates part of a web page, so I c