in reply to Reference to an array

There are basicaly two ways you can solve it.

First, you can dereference the array as soon as you get it from ->body() ... but in that case you are forcing Perl to create a copy of the array for you. Or

Second, you may keep the reference and use it:

#$body is the reference to the array of lines my $body=$item->body; print @$body; #or foreach my $line (@$body){ print $line; }
If you wanted to access for example the 5th line of the body you could use :
print "5th line=$body->[4]\n";

  Jenda@Krynicky.cz