Re: array references

2004-11-01 Thread Michael McDonnell
Eric Lease Morgan wrote: 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); This gets tricky because selectall_arrayref returns an reference to an array. Each

array references

2004-11-01 Thread Eric Lease Morgan
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}? S