in reply to Retrieval of e-mail body

Sounds like $body is not an array, it is a REFERENCE to an array. You have to treat it a little differently:
for(0..$#$body) { print $body->[$_], "\n"; # or whaterver you wish to do with the el +ement }
But why do it that way? I like this better myself:
foreach (@$body) { print "$_\n"; }

Jeff

R-R-R--R-R-R--R-R-R--R-R-R--R-R-R--
L-L--L-L--L-L--L-L--L-L--L-L--L-L--