Interview :: Perl
When the two references also contain references to each other, then the case of circular reference occurs.
Value to the location from the reference point is returned.
The read() command is used to read the block of information from the buffered file handle.
The operator compares the value of the left string to the right one and returns true if they are not equal.
The operator encloses a string in the single quotes.
The operator encloses a string in the double quotes.
The operator encloses a string in the inverted quotes.
How many data types are there in Perl?
Perl has three data types:
- Scalars
- Arrays
- Hashes
What are Perl variables?
A variable is a place to store values reserving some memory space. Perl treats the same variables differently based on context.
There are three types of Perl variables:
- Scalars
- Arrays
- Hashes
What are scalars?
A scalar contains a single unit of data. They are preceded with a ($) sign. A scalar contains a number, character, reference or a string. A reference is the address of the variable.