Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Can't pass a hash ref to a a subroutine

by sintadil (Pilgrim)
on Sep 14, 2004 at 23:46 UTC ( [id://391022]=note: print w/replies, xml ) Need Help??


in reply to Can't pass a hash ref to a a subroutine

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://391022]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-03-29 11:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found