An easy, cheesy, but very workable way, would be to use a big if statement.
if($command_line_switch =~ /hello/) { # program 1 code } if($command_line_switch =~ /goodbye/) { # program 2 code }
In reply to Re: Combining two scripts with a command line switch?
by Velaki
in thread Combining two scripts with a command line switch?
by Seventh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |