> The way I read your post had the encapsulation bells ringing.
>
> Again, symbolic references offer a possible solution:-
>
>
>
> package Root;
> $me = 'How much?';
>
> package main;
> use strict;
> use warnings;
>
> my $package = 'Root';
> my $var_name = 'me';
>
> # And ducking the rotten tomat
ell perlboot and perltoot will point you in the right
> direction.
> >
> > Just in
> >
> > ___
> > Perl-Win32-Users mailing list
> > Perl-Win32-Users@listserv.ActiveState.com
> > To unsubscribe: http:/
Thanks Justin,
I'm quite familiar with OOP. It's class variables that I'm interested in
setting, not instance variables. In Perl, this is implemented as package
variables like $MyPackage::MyVariable.
I could've done this: $__PACKAGE__::MyVariable, but as I said, the
package name is not determi
---8<
I'd like to figure out how to access package variables at runtime. In
other words, I may have a variable $class that contains the classname,
and I want to set a value to the package reference by this variable.
It'll be something like:
$class::Message = "It works";
---8<---