[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sheflug] extracting info in perl from cyrus imap
On Tue, Aug 12, 2003 at 07:55:34PM +0100, Matthew Collins wrote:
> On Tue, Aug 12, 2003 at 06:54:36PM +0100, Rob Keeling wrote:
> > How do I do that, I seem to have tried most permutations. You may have
> > guessed that I am not a perl programmer!
>
> Heh. Whoops.
>
> print "$mbox[0]\n";
>
> (or 1, or 2 etc)
I think rather you mean
print "$mbox->[0]\n";
or
print "@$mbox[0]\n";
since $mbox is a reference to an array. (Stylistically, I prefer the first
variant.)
--
But Pity stayed his hand. "It's a pity I've run out of bullets",
he thought. - "Bored of the Rings"
___________________________________________________________________
Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html
GNU the choice of a complete generation.