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

Write syntax to use grep function?

550


What are the various uses of perl?

529


Explain cpan?

534


How to create a directory in perl?

530


Explain regular expression in perl?

530






What happens when you return a reference to a private variable?

533


Explain goto name?

525


When do you use perl programming?

587


What can be done for efficient parameter passing in perl? Explain.

562


Write a cgi program to show the header part?

526


What is 'rollback' command in perl?

548


What are scalar data and scalar variables?

636


How to determine strings length in perl?

539


How does polymorphism work in perl?

518


How to replace perl array elements?

528