Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
Welcome to the Monastery
 
PerlMonks  

Seeking help!

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

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.

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.

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://26191]
Approved by root
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.