I need to write a program which does not use the client/server model. This program reads a line from the terminal, call a function to process the line, and then write the results back to the terminal.
The input line should have the format of: OPERATOR:STRING where the operators indicated operations to be performed on the string.
The operators are: r to reverse the order of the string, and c to reverse the case of the letters (change uppercase to lowercase and lowercase to uppercase).
The function that processes the line will return a result in the same character array followed by a new line.
Could someone please give me a clue as to how I should start.I am new to PERL.Any help will be appreciated.
ThanX
Clive
The input line should have the format of: OPERATOR:STRING where the operators indicated operations to be performed on the string.
The operators are: r to reverse the order of the string, and c to reverse the case of the letters (change uppercase to lowercase and lowercase to uppercase).
The function that processes the line will return a result in the same character array followed by a new line.
Could someone please give me a clue as to how I should start.I am new to PERL.Any help will be appreciated.
ThanX
Clive