in reply to Combining two scripts with a command line switch?

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 }

NOTE:
I'm assuming that you already know how to process command line switches.

Vale!
-v
"Perl. There is no substitute."