in reply to enforcing list context
I believe you could also do the following to always have list context on the comma:
sub value { my ($self) = @_; return ()=( $self->{first}, $self->{rest} ? $self->{rest}->value : () ); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: enforcing list context
by japhy (Canon) on Apr 26, 2006 at 11:46 UTC | |
by duff (Parson) on Apr 26, 2006 at 12:19 UTC |