in reply to Re: New to perl
in thread New to perl

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^3: New to perl
by marto (Cardinal) on Apr 05, 2011 at 08:39 UTC

    We seem to be going round in circles here. If you do want to learn perl, read and understand the replies you've previously been given, work (yes, work. Don't just read them, make sure you understand what they're saying and how the code works) through the examples given in Getting Started with Perl from the tutorials section. If there is something you don't understand, you're going to have to specifically tell us, otherwise we'll never know.

    My advice would be to stop posting exam questions and actually spend your time learning this. You say you have an exam to do, was there was an associated course? If so you should have notes. Do you have a teacher of some kind you could ask?

Re^3: New to perl
by kennethk (Abbot) on Apr 05, 2011 at 11:35 UTC
    i want that program should ask the user on the command line to enter name and number n to print its corresponding letter, isn't it that i think about question ?
    And I want a pony. But nobody on this website is going to give me one. Does that seem unfair?

    In order to achieve your desired result, you need to break it down to basic steps that are easily programmable - this will be your algorithm. In this case, I would:

    1. Obtain a name from the user, via STDIN (I/O Operators)
    2. Obtain an index from the user, via STDIN
    3. Use substr to obtain the n-th letter of the name
    4. print that character to STDOUT

    If you follow the extensive assistance you received in how to create a perl program using filehandle and streams ?, you should be able to achieve 1. and 2.

    This site is full of people who are patient, friendly and generous with their valuable time - time that is more valuable than yours in a very literal way. Your apparent lack of effort is rapidly burning bridges here. I caution you to consider this before posting again. How do I post a question effectively?.