in reply to Doubts on "Nesting packages" and "typeglobs"

-> 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

Perl's payment curve coincides with its learning curve.

Replies are listed 'Best First'.
Re^2: Doubts on "Nesting packages" and "typeglobs"
by ivancho (Hermit) on Jan 21, 2009 at 06:56 UTC
    OP is not asking about "->". Less haste in replying can go a long way..
      He used it twice, he should know what its for :)
        $ perl -e "He used it twice, he should know what its for :)" syntax error at -e line 1, near "for :" Execution of -e aborted due to compilation errors.

        Natural language... doesn't compile in some cases... Human hardware semantic parser usage recommended.