in reply to
Can't pass a hash ref to a a subroutine
the definition of your create_profile sub has an empty prototype that says this sub should have no arguments. Get rid of the prototype.
Comment on
Re: Can't pass a hash ref to a a subroutine
In Section
Seekers of Perl Wisdom