|
|
| P is for Practical | |
| PerlMonks |
using an object as a variable typeby Random_Walk (Parson) |
| on Jan 27, 2006 at 13:43 UTC ( #525966=perlquestion: print w/ replies, xml ) | Need Help?? |
|
Random_Walk has asked for the
wisdom of the Perl Monks concerning the following question:
Honoured bretheren in Perl I am trying to create a constrained variable using syntax like this ... To keep things simple I have created a package called Me providing a 'Me' object. Now I want to be able to do something like this. Here is the Me.pm It works fine like this
I have had a look into attributes and found this Invalid SCALAR attribute? but I remain completely unenlighted how to use this to get the threads::shared syntax working or even if it is possible without delving into XS Cheers,
Pereant, qui ante nos nostra dixerunt!
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||