In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Kim Helliwell) wrote:
> 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); If you want a persistent reference to all the mailboxes, that will change as the mailboxes change, then you just want merely: $account->obj('mailboxes') And then call ->get on it whenever you want the mailboxes. But if you want a Perl reference to the list of all mailboxes, then you just need to make one explicitly. $mboxes = [ $account->obj('mailboxes')->get ]; -- Chris Nandor [EMAIL PROTECTED] http://pudge.net/ Open Source Development Network [EMAIL PROTECTED] http://osdn.com/