in reply to Passing a list to an Object
sub do_that { my $self = shift; my %args = ref($_[0]) ? %{$_[0]} : @_; $args{chew} ||= $self->{food} || 'meat'; return "I like $args{chew)!\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Passing a list to an Object
by lzcd (Pilgrim) on Jan 13, 2001 at 13:59 UTC | |
by stephen (Priest) on Jan 14, 2001 at 05:13 UTC | |
by repson (Chaplain) on Jan 13, 2001 at 14:11 UTC |