I also want to use it like a standard perl module../DBUtil.pm clone_db arg1 arg2 arg3
The problem is if there is code to handle a commandline interface in the module it will be executed when the module is pulled in as a standard perl module. In java or c I'd put it in a "main" function. Where do I put it in perl?use DBUtil; clone_db($arg1,$arg2,$arg2);
In reply to java/c has main - perl has ? by pmc2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |