-> is the deference operator (see The Arrow Operator). It is used to resolve a value from a reference (a reference is like a pointer, see perlreftut). The lines like @entries = $mesg->entries; are using a blessed reference in an object oriented fashion to call an associated method. You can learn a bit about object oriented programming in Perl in perlboot. If any of this is unlcear, I'd be happy to answer any follow-ups.