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. Jenda ===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz ===== When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry Pratchett in Sourcery -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]