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
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
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
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