Re: passing a variable to a module

2002-10-15 Thread Jason Tiller
Hi, Jeff, :) On 15 Oct 2002, jeff wrote: > Quick question. I want to pass a variable to a non-oo module that I > created. But I how do I get the module to contain the value of the > variable that was created in the 'main' namespace. In general, this is not good style. A module should be a self

Passing a variable to a sub (WAS: passing a variable to a module)

2002-10-15 Thread Timothy Johnson
lol perldoc -f my perldoc -f our There is an article out there on the Web called "Coping with Scoping". I really recommend everyone read it. -Original Message- From: jeff [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 15, 2002 4:30 PM To: [EMAIL PROTECTED] Subject: pass

Re: passing a variable to a module

2002-10-15 Thread James Edward Gray II
On Tuesday, October 15, 2002, at 06:29 PM, jeff wrote: > > Quick question. I want to pass a variable to a non-oo module that I > created. But I how do I get the module to contain the value of the > variable that was created in the 'main' namespace. I think there is > something easy that I am not

passing a variable to a module

2002-10-15 Thread jeff
Quick question. I want to pass a variable to a non-oo module that I created. But I how do I get the module to contain the value of the variable that was created in the 'main' namespace. I think there is something easy that I am not understanding. Example code below. PROGRAM BEGIN #!/usr/bin/perl