You have given create_profile a prototype which demands it take no arguments. Remove the empty parens and the error will go away.
sub create_profile { my ($dbh, $profile_specs_ref) = @_; # . . . }
After Compline,
Zaxo
In reply to Re: Can't pass a hash ref to a a subroutine
by Zaxo
in thread Can't pass a hash ref to a a subroutine
by iariza
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |