Howdy,
I read in an earlier email that some people put _ in front of variables/function/etc
to show that they are
"important and should be handled by the program only" and it said that some "modules
enforce this"
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???
TIA
Dan
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]