perl.beginners
[Top] [All Lists]

Re: Questions on perl?

Subject: Re: Questions on perl?
From: rob.dixon@xxxxxxx (Rob Dixon)
Date: Fri, 29 Aug 2008 16:49:17 +0100
Newsgroups: perl.beginners

moijes12 wrote:
> Hello friends,
> 
> I have a few questions about perl,whose answers i am finding difficult
> to find.They are as below:
> 
> 1)What type of language is perl?
>    a)Functional Oriented
>    b)Object Oriented
>    c)Process Oriented

Those are programming styles, rather than language types. You can write both
function- and object-oriented programs in perl. Process-oriented programming is
possible to a limited extent, but it is not automated in the way you would
expect for a language intended for that style.

> 2)What is the use of '===' operator in perl?

  It has no function in Perl 5. In perl 6 it compares to see if two items refer
  to the same object, so for instance

  @list === @{\@list}

  is true.

> 3)In URL encoding,what is the use of the '=' operator?

  By convention it separates a key from a value in the query part of a URL

And I really really hope this isn't homework. If it is then you must tell us and
 also give me credit for your answers when you turn it in.

Rob


<Prev in Thread] Current Thread [Next in Thread>