I found this module was a part off the package, and tried it out, it works as i want. I have some troubles though, i am going to use quite a lot of sub routines in my scrip, how can i define and structure so that the commandline switches will actually be the subs executed?
for example i have this: use Getopt::Long; if (!GetOptions("reg_backup" => \$reg_backup, "html" => \$html) ){err_exit("$usage\n",0);} if (defined ($reg_backup) ){reg_backup()} if (defined($html)){create_html()} etc.. when i execute the script it does as its told, but if i want to combine the 2 subs, so that it should first run the regbackup sub, (then i have the resul in an array), then it should print that result in the html sub. how should i structure the if statments to accomplish this? //Dave -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]