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

    package Foo;

    my $bar; # private to Foo

What are the errors you get?

Reply via email to