Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Seeking help!

by Anonymous Monk
on Aug 04, 2000 at 18:07 UTC ( #26191=perlquestion: print w/replies, xml ) Need Help??

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
and other one containing
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.

Replies are listed 'Best First'.
Re: Seeking help!
by davorg (Chancellor) on Aug 04, 2000 at 18:18 UTC
      ROFL. Nice reply.
      The question is: who could teach Perl in a CS101 class?
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.

Re: Seeking help!
by maverick (Curate) on Aug 04, 2000 at 18:27 UTC
    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.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://26191]
Approved by root
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2020-09-25 20:41 GMT
Find Nodes?
    Voting Booth?
    If at first I donít succeed, I Ö

    Results (140 votes). Check out past polls.