Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Good Morning perl monks.
I have two different files with several lines. Suppose one containing
perlisfun//comment
and other one containing
isitright//comment1
I need to print file1 merging with file2 in reverse order getting rid of comments and //
Result should be:
tn hu gf is ri tl ir se ip.
I tried chop , but it prints the comment too. Any Ideas? Thankx.
Re: Seeking help!
by davorg (Chancellor) on Aug 04, 2000 at 18:18 UTC
|
| [reply] |
|
ROFL. Nice reply.
The question is: who could teach Perl in a CS101 class?
Larsen
| [reply] |
homework ? - RE: Seeking help!
by lhoward (Vicar) on Aug 04, 2000 at 18:22 UTC
|
I don't mean to come down on you if this is a genuine
problem you are having. However, there have been many
questions posted recently like the one asked above, all
posted by Anonymous Monk that just scream
"CS101 homework".
I can find no practical purpose to the problem presented
above. If this is a genuine problem and not homework,
can you please explain the context of the problem?
From now on I will not answer any question that I suspect
is CS101 homework and is posted by Anonymous Monk.
I hope others will follow my lead.
I believe the purpose of Perlmonks is to enlighten the
perl community
and not to do someone's homework for them. | [reply] |
Re: Seeking help!
by maverick (Curate) on Aug 04, 2000 at 18:27 UTC
|
Updated
I had posted a solution to this, but after reading lhoward's post,
I removed it. If indeed this question isn't someone's homework,
I'll gladly repost my solution.
/\/\averick | [reply] |
|