in reply to Storing output of a subroutine into an hash and then printing hash
You need to add a semicolon after the right paren:
# v %mycorpus = getCorpus("C:\Users\li\test"); #line 1
In Section
Seekers of Perl Wisdom