--- Nick Transier <[EMAIL PROTECTED]> wrote:
> Thanks, do you start the brackets before the "package blah" call, or
> after.
> I.E. is it {package blah; #stuff; } or package blah; {#stuff;} ?
It depends on how tightly private you want those variables.
I always put the package statement inside t
On 18 Jun 2001 14:22:06 -0500, Nick Transier wrote:
> Does the C++ notion of private data have a similar structure in perl, when
> defining packages, I find that when I try to define global variables inside
> the package, but outside of all the subroutines, I get a million errors.
> Thanks,
>
> Does the C++ notion of private data have a similar structure in perl,
when
> defining packages, I find that when I try to define global variables
inside
> the package, but outside of all the subroutines, I get a million
errors.
> Thanks,
Use my to declare variables local to a package.
pack
On Mon, 18 Jun 2001, Nick Transier wrote:
> Does the C++ notion of private data have a similar structure in perl, when
> defining packages, I find that when I try to define global variables inside
> the package, but outside of all the subroutines, I get a million errors.
> Thanks,
How are you de
--- Nick Transier <[EMAIL PROTECTED]> wrote:
> Does the C++ notion of private data have a similar structure in perl,
> when defining packages, I find that when I try to define global
> variables inside the package, but outside of all the subroutines, I
> get a million errors.
If you need privat