1.

In Perl, using which operator are the local variables created?(a) Dot(b) Arrow(c) Scope resolution(d) myThe question was posed to me at a job interview.My question is from Automatic Variable topic in portion Memory Allocation & Scope of Variable of Object Oriented Programming

Answer»

The correct option is (d) my

Easy explanation - The LANGUAGE perl supports local variables but the concept is BIT different. And if the values are not ASSIGNED to the local variables then it CONTAINS undef VALUE.



Discussion

No Comment Found

Related InterviewSolutions