I need help badly.... I had a program to retrieve information from the datafile unfortunatelly, my program did not run as I expected. I had a datafile.txt with the following information:
User Name UserID Phone# I am looking for a program something to match User Name with the USer +ID, if the User Name and UserId are matched then, it print out the ph +one#. My program at this time is not mathing the user Name and USer ID but m +atching all including the Phone#. So when I put User Name = myname an +d USerID=1, the output is all the phone # that had a number 1, and th +e UserId that had a 1 #. Please, if anyone have a simple program like this ..please help. I wou +ld appreciate your help. Thanks

In reply to Matching 2 Keywords to retreve information by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.