Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2017-12-18 04:00 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (466 votes). Check out past polls.