Let me explain by way of an example:
sub somemethod { my($self, $v1, $v2) = @_; my($x1) = $self->{'key1'}; my($x2) = $self->{'key2'}; print "x1=$x1, x2=$x2\n"; my($ret) = $self->_othermethod($v1); ...
Instead, I would love to be able to say:
method somemethod { my($v1, $v2) = @_; print "x1=$self.x1, x2=$self.x2\n"; my($ret) = $self._othermethod($v1); ...
I realize parts of this have been discussed many times before. Is this *way* too hard to do? Is it just stupid?
I think if there could be a safe presumption that objects will be hash references, and that "->{'...'}" should be condensed to one unshifted keystroke such as "." we'd all be much much happier :)
Edit: chipmunk 2001-05-08
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(ar0n) Re: Heresy
by ar0n (Priest) on May 08, 2001 at 18:41 UTC | |
by merlyn (Sage) on May 08, 2001 at 18:48 UTC | |
|
Re: Heresey
by Masem (Monsignor) on May 08, 2001 at 18:18 UTC | |
|
Re: Heresy
by tadman (Prior) on May 08, 2001 at 19:12 UTC | |
by bbfu (Curate) on May 09, 2001 at 03:31 UTC |