>>>>> "Piers" == Piers Cawley <[EMAIL PROTECTED]> writes:
Piers> So, is there any chance that we'll be able to do:
Piers> class ical {
Piers> use object_name '$self';
Piers> method ical {
Piers> given $self.ology {
Piers> ... { $self.ish }
Piers> }
Piers> }
Piers> }
You could use the Smalltalk way by defining method myself in UNIVERSAL,
which simply returns self. So ".myself" would always be yourself,
which you could store if needed.
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!