I\'m an intern and very new to this...
My boss gets an email with two attachments every Monday which he has to turn into wiki code and put it on our internal website
Try something like this
foreach my $msg (reverse @{$Folder->{items}})
don't use "in" in perl