http://qs1969.pair.com?node_id=1201596


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