Professional Documents
Culture Documents
Perl Assignment Level 0-2
Perl Assignment Level 0-2
Perl Assignment Level 0-2
5. Make a list of 5 unusual (i.e. which you did not find in C) perl operators. [Hint:
look-up any of the cheat-sheets provided or manpage perlop.]
6. A text file f2.txt contains name of state and its approx. population, (in crore of
people) one state on each line, like:
-------------------------------
Guajarat 4.5
Bihar 3.0
... ...
-------------------------------
Write a program to create a hash %states in memory, which uses state name as
the key and population as the value.
10. Re-write your program in exercise 6, using idea you picked up from exercise 9.