my $profile_ref ={
As was recently stated1 in a previous episode of SoPW, constructing hash references is done with {}s.
Also, as per Zaxo's and Mifflin's suggestion, remove the prototype. Even if you think it's not directly related, remove it.
----
1 I really should be more careful with my reading. I guess spending 6 hours on PM researching testing practises was bound to cause a silly mistake.
In reply to Re: Can't pass a hash ref to a a subroutine
by sintadil
in thread Can't pass a hash ref to a a subroutine
by iariza
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |