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



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

Answer / 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

More CGI Perl Interview Questions

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 happens when you return a reference to a private variable?

0 Answers  


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

0 Answers  


Explain lists in perl?

0 Answers  


What are the different types of perl operators?

0 Answers  


Explain the meaning of subroutine?

0 Answers  


What is an interpolation in perl?

0 Answers  


Which has the highest precedence, List or Terms? Explain?

0 Answers  


How to check the status of airplane mode (enable/disable) in perl for Android mobile?

0 Answers  


What does perl do in linux?

0 Answers  


How do find the length of an array?

0 Answers  


How will you open a file in read-only mode in perl?

0 Answers  


Categories