Explain what is the function of Return Value?
The Return Value function returns a reference to an object blessed into CLASSNAME.View
Explain what are prefix dereferencer and list them out?
Using a particular prefix when you dereference a variable, they are called prefix dereferencer.
Explain what is the function that is used to identify how many characters are there in a string?
To tell how many characters are there in a string, length () function is used.View
Explain what is lvalue?
An lvalue is a scalar value which can be used to store the result of any expression. Usually, it appears at the left-hand side of the expression and represent a data space in memory.View
Explain what is Perl one liner?
One liner is one command line programs and can be executed from the command line immediately.
# run program under the debugger
What is the closure in PERL?
The closure is a block of code that is used to capture the environment where it is defined. It particularly captures any lexical variables that block consists of and uses in an outer space.View
Explain what is STDIN, STDOUT and STDERR?
Mention what are the two ways to get private values inside a subroutine or block?
There are two ways through which private values can be obtained inside a subroutine or block
Explain what is Polymorphism in Perl?
In Perl, Polymorphism means the methods defined in the base class will always over-ride the methods defined in the parent class.View
Mention what is CPAN?
CPAN means Comprehensive Perl Archive Network, a large collection of Perl software and documentation.View
Explain what is Chop & Chomp function does?
Explain USE and REQUIREMENT statements?
Example: Require Module,
Var=module::method(); //method called with the module reference
Example: Use Module
Var=method(); //method can be called directlyView
Mention how many ways you can express string in Perl?
You can express string in Perl in many ways
For instance “this is quizbucket.”
What does -> symbol indicates in Perl?
In Perl, the arrow – > symbol is used to create or access a particular object of a class.View
Explain what is the scalar data and scalar variables in Perl?
Scalar in Perl means a single entity like a number or string. So, the Java concept of int, float, double and string equals to perls scalar and the numbers and strings are exchangeable. While scalar variable is used to store scalar data. It uses $ sign and followed by one or more alphanumeric characters or underscore. It is a case sensitive.View
What is the syntax used in Perl grep function?
The syntax used in Perl is
a) grep BlOCK LIST
b) grep ( EXPR, LIST )
In Perl, what is grep function used for?
To filter the list and return only those elements that match certain criteria Perl grep function is used.View
Mention the difference between die and exit in Perl?
Die will print a message to the std err before ending the program while Exit will simply end up the program.View
Explain which feature of PERL provides code reusability?
To provide code re-usability in PERL inheritance feature is used. In Inheritance, the child class can use the methods and property of the parent class.View
List the operator used in Perl?
Operators used in Perl are
© 2017 QuizBucket.org