I've been struggling with accessing email messages in a particular
account and mailbox, and this (and some other stuff I'm trying)
engenders a question:

What's the proper way to visit all of a list of objects that are elements
of another object? By trial and error, I've come up with the following,
which seems to work:


for $mbox ($account->obj('mailboxes')->get)
{
     ... do some stuff...
}

But what if I want a reference to a list of all the mailboxes? Should
I force a list context like this?

$mboxes = ($account->obj('mailboxes')->get);

I know that it doesn't work without the parens, because when I try
it, I only get the first one of whatever.

Kim Helliwell
[EMAIL PROTECTED]
Homepage: http://homepage.mac.com/kimgh



Reply via email to