Define print() function in perl?
Answer / Vikendra Kumar
The 'print' function in Perl is used to output data to STDOUT (Standard Output). It can take one or more arguments, which are the values to be printed. The syntax is as follows: print 'Some Text';
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain different types of perl operators.
my @array=('data1','data2'); my @array1=('data1','data2'); my ($i,$k); $i=7; $k=7; while($i){ $array [++$#array] = 'ree'; $i--; print "@array"; } while($k){ push(@array1,'ree'); $k--; print "@array1"; } Are these two while loop are doing the same functionality ? What may be the difference?
what are prefix dereferencer and list them out?
What is the difference between $array[1] and @array[1]?
while(my($key, $value) = each(%hash) ) { print "$key => $value\n"; } my($key, $value); while(($key, $value) = each(%hash) ) { print "$key => $value\n"; } What is the different between these two code in case of "my" usage ?
write a Perl script to find a particular word in a paragraph???
Differentiate between c++ and perl.
Explain perl. What are the advantages of programming in perl?
How does polymorphism work in perl? Give an example.
How can I implement the function overloading in Perl ? I read about the operator overloading, I do not know how to implement the function overloading. Thanks in advance ?
Explain the meaning of closure in perl.
What is the difference between perl list and perl array?