in reply to Strict scripts
It's very annoying to pass to each function the 'global' variable , is there an alternative to do this ?You could incorporate all this information into an object and just pass the object or call different methods on the object directly.
You could also have a look at web-frameworks like Catalyst or Dancer which have probably solved all the problems or annoyances you are now struggling with.
the another thing I can't understand is:For lack of seeing the code of your scripts, the Monks will also fail to understand this problem. Please construct a minimal script that shows this error and post it here.
CountZero
A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
|
|---|