Monday, July 20, 2009

perl problem 9 (HARD)

Make a program that reads a list of strings from a file, one string per line, and then lets the user interactively enter patterns that may match some of the strings. For each pattern, the program should tell how many strings from the file matched, then which ones those were. Don't re-read the file for each new pattern; keep the strings in memory. The filename may be hard-coded in the file. If a pattern is invalid (for example, if it has unmatched parentheses), the program should simply report that error and let the user continue trying patterns. When the user enters a blank line instead of a pattern, the program should quit.


Teja

PERL PROBLEM 8 (EASY)

HI,
HERE IS PERL PROBLEM 8

write a program to generate 'n' random dna strings between length 'a' and 'b'. The values of 'n', 'a','b' has to be input from command line.

Example:
2
5
7

AGTCTC
ACCCTGC

Monday, July 6, 2009

No problems this week!

Hey everyone,

Sorry there wont be any problems this week. I will posting problems next monday.

Thankyou

Teja