> > I guess what I'm getting at is: > > > > If my module exports variables can I make it so they can't > be changed? > > > > IE > > > > use MyStuff qw($_joe $_mama); # now they should have $_joe > > and $_mama exported from the module. > > > > print "$_joe $_mama\n"; # ok > > my $joe = $_joe; # ok > > $joe =~ s/\W//g; # ok > > $_joe = "new value"; # bad - not allowed - maybe give warning? > > $_mama =~ s/\W//g; # bad - not allowed - maybe give warning? > > > > If so hwo do I do it or what module protects its variables in > > this way so I can look at it's code for an example or > documentation??? > > > Dan > If you have a copy of "Programming Perl" , take a look at CH 12, the > section "Using closures for Private Objects" (read the whole chapter > actually).
Don't have that one, I'll visit the library thoguh, Thanks Dan > > HTH > Jim > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]