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 does read () command do?

687


What $! In perl?

709


What is a perl references?

686


Why is it hard to call this function: sub y { "because" } ?

715


Define operators used in perl?

687


How do you you check the return code of a command in perl?

753


Explain lists ?

703


How can information be put into hashes?

726


How many types of primary data structures in Perl and what do they mean?

1071


Explain grooving and shortening of arrays?

883


Which functions in perl allows you to include a module file.

670


Comment on array slicing and range operator

718


Why should I use the -w argument with my Perl programs?

753


Explain split function in perl?

751


Which statement has an initialization, condition check and increment expressions in its body? Write a syntax to use that statement.

781