We don't bite newbies here... much | |
PerlMonks |
Re: Can't pass a hash ref to a a subroutineby sintadil (Pilgrim) |
on Sep 14, 2004 at 23:46 UTC ( [id://391022]=note: print w/replies, xml ) | Need Help?? |
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 Section
Seekers of Perl Wisdom
|
|