sub Create_hashref{ { my $i=1; @_; }; }
Try this, it gives the same result of "10". '{' is also used as block delimiter and when the parser has to guess if it is used as a block delimiter or a hash reference, it might guess wrong.
In reply to Re: Creating reference to hash and array
by jethro
in thread Creating reference to hash and array
by vinoth.ree
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |