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 |
write a Perl script to find a particular word in a paragraph???
what are the strategies followed for multiple form interaction in cgi programs?
What is eval function in perl?
What are the various file operations in perl. Explain with example.
How to implement a stack in Perl?
What is the difference between die and exit in perl?
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?
What is the peculiarity of returning values by subroutines in perl?
what is the difference between java and cgi?
How can we create perl programs in unix, windows nt, macintosh and os/2 ?
How to deleting an existing file in perl programming?
What do the symbols $ @ and % mean when prefixing a variable?