-> is not related to packages. It is used for accessing reference values. Consider:
use strict; use warnings; my @array = ("Hello world"); my $refArray = \@array; print $refArray->[0];
Prints:
Hello world
In reply to Re: Doubts on "Nesting packages" and "typeglobs"
by GrandFather
in thread Doubts on "Nesting packages" and "typeglobs"
by perlpal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |