ganeshkumar has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's minimum standard of quality and will not be displayed.

Replies are listed 'Best First'.
Re: Perl speciality
by Anonymous Monk on Aug 13, 2009 at 09:02 UTC
    Please consult your fellow classmates or your instructor or the oracle. It is nice that you are taking a course in perl, but since you appear to be computer literate so you should employ those skills to find the answer. It may take as little as 5 seconds or 5 minutes and the answer might seem complicated, but it should satisfy your homework assignment.
    A reply falls below the community's threshold of quality. You may see it by logging in.
Re: Perl speciality
by ELISHEVA (Prior) on Aug 13, 2009 at 16:12 UTC

    There are many ways to answer this question. Are you interested in syntax? end user experience? compiler/interpreter implementations? portability? technical resources and support?

    To answer this question well one needs to take into account a variety of perspectives. Googling is a great way to get essays covering all these different questions (be sure to check links beyond the first few google hits so you get a true range of opinions).

    In case you had trouble thinking of good search terms, here is a link with some fruitful search terms: compare perl to C

    Best, beth

Re: Perl speciality
by tokpela (Chaplain) on Aug 13, 2009 at 09:16 UTC

    In my opinion, Perl allows you to focus on the problems you want to solve without having to worry as much about the computer.

    Some simple comparative examples include no need to allocated memory as you do in C and no strong typing in Perl.

    For example, in Perl to make a string you just declare it.

    my $string = "This is my string";

    Notice that I didn't have to allocate any memory for the variable either.

    There are probably many other comparisons but the basic summation in my opinion is that Perl will allow you to focus more on your problems once you get over the initial learning curve and less on the particulars of dealing with memory management and strong typing.

      For example, in Perl to make a string you just declare it.
      my $string = "This is my string";
      Oh, yes, that's so different from C:
      char *string = "This is my string";
      Come on, if this is the best you can come up for something that's different between Perl and C, there would be no reason to bother with Perl.

        Yes, and then

        $string .= ". And now it's longer.";
        is just like ... erm ... how was that ... (I will not even try).

        Jenda
        Enoch was right!
        Enjoy the last years of Rome.

        Come on, if this is the best you can come up for something that's different between Perl and C, there would be no reason to bother with Perl.

        That is easy target for criticism. Please you provide a reason.