I fixed the code, but by using the format found in original permod documentation here. The format use vars() complained that my variables required explicit package names. Further research into use vars() tells me that it is 'obsolete' as of 5.6.0!!! Our is apparently the suggested, current, usage anyway.