Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

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
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.

Comment on Seeking help!
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?
      Larsen
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
    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
Node Status?
node history
Node Type: perlquestion [id://26191]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2014-09-17 18:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (94 votes), past polls