Loading ...
Sorry, an error occurred while loading the content.

2 QUESTIONS **** I aM NEW ON PERL!ANYONE CAN SLOVE THIS PROBLEM???

Expand Messages
  • ilikematurewoman
    Problem 1 Suppose you are given a datafile which consists of (name, telephone number) pairs on each line. An example of datafile is shown below: all
    Message 1 of 3 , Nov 25, 2003
    • 0 Attachment
      Problem 1
      Suppose you are given a datafile which consists of (name, telephone
      number) pairs on each line. An example of datafile is shown below:
      all 212-212-3333 veil 216-888-3322 hulya 212-231-8218
      Write a PERL program called rehber which reads the datafile and then
      prompts the user for a name. If a name is entered, then the telephone
      number of the person (if it exists) will be printed. The input will
      be terminated by <ctrl-d>. When the program rehber is run as follows,
      you will get the following output:
      °/0 rehber datafile >
      >ali all's number is : 212-212-3333
      > hulya
      hulya's number is : 212-231-8218
      > ahmet
      ahmet does not exist in the directory
      > <ctrl-d>

      ********************************************************

      PROBLEM 2
      ------------
      Problem 3
      Write a perl program called mysearch which accepts a string followed
      by a list of files on the command line. The program will then search
      (using case insensitive search) each file for the occurrence of the
      string an print file name and line number of where the string occurs.
      As an example consider the following:
      % mysearch all datal data2 dataS datal:2 datal:5 data3:1 data3:3
      What the above command did is search the datal, data2 and dataS files
      in the current directory. If a line with the substring all is found,
      then the filename followed by the line number is printed. NOTE: your
      search should be case insensitive.
    • Charles K. Clarkson
      ... It looks like you re new to asking questions on a mailing list also. Never use ALL CAPS. This is not a classified ad, it is a message subject. ALL CAPS is
      Message 2 of 3 , Nov 25, 2003
      • 0 Attachment
        ilikematurewoman <ilikematurewoman@...> wrote:
        : Subject: [PBML] 2 QUESTIONS **** I aM NEW ON PERL!ANYONE
        : CAN SLOVE THIS PROBLEM???

        It looks like you're new to asking questions on a
        mailing list also. Never use ALL CAPS. This is not a
        classified ad, it is a message subject. ALL CAPS is
        annoying, hard to read, and considered rude.

        Lets' examine that subject:

        "2 questions **** I am new on perl!Anyone can slove this problem???"

        First, if your two questions are not related, use
        two messages to ask them. Second this is a beginners
        list. If you were not new to perl you would ask your
        question in a different list. So we can reduce your
        subject down to:

        "Anyone can slove this problem???"


        Unless English is not your first language, your
        spelling checker is broken, and your '?' key is stuck
        there is no excuse for something that sloppy. Let's
        clean it up:

        "Can anyone solve this problem?"


        The problem here is that subject doesn't tell me
        what your asking in the message. And that's what the
        subject of your post should have been.




        But to answer your questions:

        : Problem 1
        [snip]

        Yes. I can solve this problem.


        : PROBLEM 2
        [snip]

        Yes. I can solve this problem also.


        HTH,

        Charles K. Clarkson
        --
        Head Bottle Washer,
        Clarkson Energy Homes, Inc.
        Mobile Home Specialists
        254 968-8328
      • Franki
        LOL, I ll pay that one.... Ironically, although I am not in Charles s league, I can solve those problems as well. rgds Franki ... -- Please sign our petition
        Message 3 of 3 , Nov 25, 2003
        • 0 Attachment
          LOL, I'll pay that one....

          Ironically, although I am not in Charles's league, I can solve those
          problems as well.

          rgds

          Franki


          Charles K. Clarkson wrote:

          > ilikematurewoman <ilikematurewoman@...> wrote:
          > : Subject: [PBML] 2 QUESTIONS **** I aM NEW ON PERL!ANYONE
          > : CAN SLOVE THIS PROBLEM???
          >
          > It looks like you're new to asking questions on a
          > mailing list also. Never use ALL CAPS. This is not a
          > classified ad, it is a message subject. ALL CAPS is
          > annoying, hard to read, and considered rude.
          >
          > Lets' examine that subject:
          >
          > "2 questions **** I am new on perl!Anyone can slove this problem???"
          >
          > First, if your two questions are not related, use
          > two messages to ask them. Second this is a beginners
          > list. If you were not new to perl you would ask your
          > question in a different list. So we can reduce your
          > subject down to:
          >
          > "Anyone can slove this problem???"
          >
          >
          > Unless English is not your first language, your
          > spelling checker is broken, and your '?' key is stuck
          > there is no excuse for something that sloppy. Let's
          > clean it up:
          >
          > "Can anyone solve this problem?"
          >
          >
          > The problem here is that subject doesn't tell me
          > what your asking in the message. And that's what the
          > subject of your post should have been.
          >
          >
          >
          >
          > But to answer your questions:
          >
          > : Problem 1
          > [snip]
          >
          > Yes. I can solve this problem.
          >
          >
          > : PROBLEM 2
          > [snip]
          >
          > Yes. I can solve this problem also.
          >
          >
          > HTH,
          >
          > Charles K. Clarkson


          --
          Please sign our petition to encourage notebook manufacturers to offer
          video card upgrades just like desktops.
          http://www.petitiononline.com/inspiron/petition.html

          For free scripts, online webmaster tools, HTML, XHTML, Perl & PHP
          tutorials and stuff, visit:
          http://htmlfixit.com, Free web developer resources.
        Your message has been successfully submitted and would be delivered to recipients shortly.