Jenda wrote: > > From: zanardi2k3 <[EMAIL PROTECTED]> > > That poses the problem of executing my script for several folders, > > with different parameters for each of them. Now i'm wondering if i > > have to include the possibility of multiple "backups" in the script > > itself, if i better write another script that calls this one with > > different parameters each time, or if i better make a module of my > > original script (though it seems too much, since it's not code reuse > > but just script relaunching). > > IMHO it'd be best to wrap the code of the script in a subroutine that > gets the info from its parameters instead of ARGV and then call this > subroutine either once (so that you get the old behaviour) or several > times with different parameters. >
Thanks Jenda. The old 'wrap or rewrite' problem. MO is to rewrite. Always. unless you have an 'infinite number of monkeys' or your source is massive. Most will disagree. /R -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]