Define print() function in perl?



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

Post New Answer

More CGI Perl Interview Questions

Explain different types of perl operators.

1 Answers  


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?

1 Answers   A1 Technology,


what are prefix dereferencer and list them out?

1 Answers  


What is the difference between $array[1] and @array[1]?

1 Answers  


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 ?

1 Answers  


write a Perl script to find a particular word in a paragraph???

1 Answers  


Differentiate between c++ and perl.

1 Answers  


Explain perl. What are the advantages of programming in perl?

1 Answers  


How does polymorphism work in perl? Give an example.

1 Answers  


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 ?

1 Answers  


Explain the meaning of closure in perl.

1 Answers  


What is the difference between perl list and perl array?

1 Answers  


Categories