By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,843 Members | 1,420 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,843 IT Pros & Developers. It's quick & easy.

Search and print answers

P: 1
I have a text file with Questions and Answers like below.
I wrote a script in perl to search a question(s), if match Q's, then print Answers up to End_Q#.

Can someone here help me in printing output?
Example: User searches for "How to dot this"
Then it returns:
1. do this
2. do that
3. and do that


Q and A File:
-------------------------
Q1 How to do this
1. do this
2. do that
3. and do that

End_Q1

Q2 What is bah bah bah
- This is
- It is
- And so on

End_Q2
-----------------------

Thank in advance for your help!
Thanh
Jan 10 '08 #1
Share this Question
Share on Google+
1 Reply


KevinADC
Expert 2.5K+
P: 4,059
Like I asked on the other forum, is this school/class/course work?
Jan 10 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.