How do I manipulate array references?

In a package I'm writing I initialize an array reference (I think) through DBI like this:

  $self->{author_ids} = $dbh->selectall_arrayref($query);

First of all, what sort of foreach loop can I write to iterate through the contents of $self->{author_ids}?

Second, how do I undefine the value of $self->{author_ids}?

Third, if I have a list of integers, how to I assign the items in this list to $self->{author_ids}?

--
Eric Lease Morgan
http://infomotions.com/




Reply via email to