in reply to Re: Re (tilly) 1: How to call other programs
in thread How to call other programs
But have you trapped the case where they are using the same global variables as each other?
You can fix that, sort of, by wrapping your do in an eval that puts each invocation into a private package. Of course if they use package also, you are out of luck again on the global issue. Likewise if they sometimes refer to variables as being explicitly in package main. Not to mention the joys of global signal handlers.
Please trust me when I say I have the scars and don't recommend that route long-term. Refactoring the code into modules is not that hard, and once done you gain a lot of flexibility.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re (tilly) 3: How to call other programs
by Jonathan (Curate) on Feb 02, 2001 at 14:01 UTC | |
by tilly (Archbishop) on Feb 02, 2001 at 20:54 UTC | |
by Jonathan (Curate) on Feb 02, 2001 at 20:58 UTC |