What do the symbols $ @ and % mean when prefixing a
variable?

Answer Posted / bhavani

$ indicate scalar data type

@ indicates an array and

% indicates an hash or an associative array.

Is This Answer Correct ?    37 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to determine strings length in perl?

758


What are the arguements we normally use for perl interpreter?

750


What syntax is used for grep() function?

822


You want to connect to sql server through perl. How would you do that?

754


Give an example of the -i and 0s option usage.

663


How do I print the entire contents of an array with Perl?

760


Explain the meaning of closure in perl.

758


Which has highest precedence in between list and terms? Explain?

648


What is the difference between localtime() and gmtime() functions?

807


Explain the difference between declarations of 'my' and 'local' variable scope in perl?

730


Enlist the advantages of using c over perl?

713


What are perl strings?

704


Explain a tell function in perl?

781


What rules must be followed by modules in perl.

762


How to convert arrays into a string in perl?

699