I am confused on how to return a hash from a subroutine or if I can even return a hash... My subroutine defines a hash, populates it, and then returns it:
One of the next things the Perl script tries after calling savePurpose is reference (what I'd like to be) the hash as:
Can someone help me understand what I am doing wrong with this, keeping in mind that ideally I want to have a hash returned from savePurpose?