> Trying to understand what the -> does please.
> Cannot find it in the perl docs etc.
It should be in perlref and perltoot at least. -> is (one of) the
dereferencing operators in perl. In cases where the left-hand side of ->
is an object (as in, a reference to a thing bless()ed into a package),
-> and the right hand side looks like a function call parameter list, ->
does a method lookup:
here the method named "method" is looked up according to the inheritance
graph of whatever package (class) $object is blessed in, and calls it
with arguments $arg1 and $arg2 (and it passes $object too, as the first
argument, preceding the rest).