> It was Wednesday, August 13, 2003 when Dan Muey took the soap > box, saying: > : > : If my module exports variables can I make it so they can't > be changed? > > Yes, but it's very complicated. You can see my example > module ex::constant::vars for a way to do it, but read all > the documentation first. :-) > > http://search.cpan.org/author/CTWETEN/ex-constant-vars-0.01/vars.pm
Nice but Oi! it is complicated! There may be an easier solution. What I want to do is use the variable within the module itself and export them for the user to use if they want. What I don't want is the user to import a function that uses the variable internally and the variable, change it to something evil, and then call the function. Could I use a my variable intrenall and export the and our variable with the sam data then use the my variable internally and export the our version? IE my $foo = 02173; our $_foo = $foo; Then they can export and change $_foo all they want but they can't change the my $foo so I can use it safley internally. Using my() in a module won't be a problem right just trying to export a my() variable is bad and evil, correct? > You want to use constant functions in real code. > Casey West -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]