No parens required to use the arrow notation with a subroutine return value.my $hash = { a => 'b' }; sub foo { print $_[0], "\n"; return $hash; } print foo('abcd')->{a};
In reply to Re^2: Problematic UploadFile() method in CGI.pm
by Errto
in thread Problematic UploadFile() method in CGI.pm
by monkfan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |