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



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

Answer / Ankur Kumar Dixit

Perl has three primary data structures: scalars (as explained above), arrays, and hashes. Arrays hold ordered collections of scalar values, with elements accessed using indexes. Hashes store key-value pairs, where keys must be unique but can be any scalar value, and values can be any Perl data type.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More CGI Perl Interview Questions

write a Perl script to find a particular word in a paragraph???

1 Answers  


what are the strategies followed for multiple form interaction in cgi programs?

1 Answers  


What is eval function in perl?

1 Answers  


What are the various file operations in perl. Explain with example.

1 Answers  


How to implement a stack in Perl?

1 Answers  


What is the difference between die and exit in perl?

1 Answers   HCL,


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 is the peculiarity of returning values by subroutines in perl?

1 Answers  


what is the difference between java and cgi?

1 Answers  


How can we create perl programs in unix, windows nt, macintosh and os/2 ?

1 Answers  


How to deleting an existing file in perl programming?

1 Answers  


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

1 Answers   Barclays,


Categories