Could someone write simple PERL programs for the following scenarios:
1) convert a list from {1,2,3,4,5,7,9,10,11,12,34} to {1-5,7,9-12,34}
2) to sort a list of negative numbers
3) to insert values to hash array
4) there is a file with content:
C1 c2 c3 c4
r1 r2 r3 r4
put it into an hash array where keys = {c1,c2,c3,c4} and values = {r1,r2,r3,r4}
5) There are testcases running each testcase runs as a process and has a process ID. The logs are logged in a logfile process ID appended to each line. Prog to find out if the test case has passed or failed. The program shoud be running till the processes are running and display output.