Thursday, November 14, 2013

changing Perl code I inherited

  • Created a subMain.
  • There were a lot of "my"-s outside any subroutine, moved them as "our"-s to subMain – not the same visibility, I know. 
  • Outside subMain these "our"-s need to get accessed as "main::…".
  • But actually we don't like global variables at all, so pass them as parameters or …

No comments: