i am new to perl modules (well, any perl more advanced than CGI business).
i have made a module that returns a hash reference (the hash is a hash of
a hash, populated by $outer{$inner} = { a=>b, c=>d }). when i use a sort
subroutine ({ $a->{'field'} <=> $b->{'field'}) on a hash in its module,
the
--- 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.
> 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
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,
--- 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 err
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,
-Nick