in reply to enforcing list context
sub value { my ($self) = @_; return wantarray ? ($self->{first}, $self->{rest} ? $self->{rest}->value : ()) : 1 + ($self->{rest} && $self->{rest}->value) }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: enforcing list context
by billh (Pilgrim) on Apr 26, 2006 at 12:53 UTC |