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 …

Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.