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

What is “grep” function in perl?

581


What does `$result = f() .. g()' really return?

579


What are the different types of perl operators?

538


How many loop control keywords are there in perl?

563


Explain strftime() function in perl?

547






Which of these is a difference between Perl and C++ ?

580


Is perl compiler or interpreter?

551


What does perl do in linux?

541


What are the functions that can be performed using cgi program?

494


How to open a directory in perl?

556


How to print escaping characters inside a string in perl?

526


Create a function that is only available inside the scope where it is defined ?

558


Define say() function in perl?

549


How we can navigate the xml documents?

547


What is lexical variable in perl?

532