$$foo is not a shorthand for $foo->.
>perl -E"$foo=\'foo'; say $$foo;" foo >perl -E"$foo=\'foo'; say $foo->;" syntax error at -e line 1, near "->;" Execution of -e aborted due to compilation errors.
You're probably thinking of the equivalency of $$foo[...] and $foo->[...] and of $$foo{...} and $foo->{...}, but that's already mentioned.
In reply to Re^2: Mini-Tutorial: Dereferencing Syntax
by ikegami
in thread Mini-Tutorial: Dereferencing Syntax
by ikegami
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |