RE: Inserting a list into an object's attribute

2003-09-25 Thread Smith,Devon
ids if (@ids) { $self->{term_ids} = [EMAIL PROTECTED] } # return return $self->{term_ids}; } > -Original Message- > From: Eric Lease Morgan [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 25, 2003 9:29 AM > To: [EMAIL PROTECTED] > Subject: Re: Inse

Re: Inserting a list into an object's attribute

2003-09-25 Thread Eric Lease Morgan
On 9/25/03 7:15 AM, Paul Hoffman <[EMAIL PROTECTED]> wrote: >> I suppose I could stuff a reference to the @ids array into >> $self->{term_ids} like this: >> >> if (@ids) { $self->{term_ids} = [EMAIL PROTECTED] } > > Exactly! > >> But then how do I dereference items in my object? > > sub foo

Re: Inserting a list into an object's attribute

2003-09-25 Thread Paul Hoffman
On Wednesday, September 24, 2003, at 05:44 PM, Eric Lease Morgan wrote: How do I insert a list into an object's attribute? [...] I suppose I could stuff a reference to the @ids array into $self->{term_ids} like this: if (@ids) { $self->{term_ids} = [EMAIL PROTECTED] } Exactly! But then how