Hi monks!
I am writing a PERL script which will act like an interactive shell.
now what i have thought is that i ll use regular expressions to parse what command has been typed in by the user.and then depending on the command i ll execute a system command.
but this way i would end up having 20 if statements.
is there a smarter way of handling this situation where i have to design a Command line interface CLI with 20 commands that a user can type in?