Managing DBM Files
DBM Exercise
- Using only the knowledge that you have gained in the course
to this point, try the following exercise:
Exercise |
- Copy the "each2" example into a file called "each3".
- Add code after the dbmopen function to
- Use a while-loop to repetitively read a line from STDIN
- Make sure you chop or chomp the input
- Split on white-space into two scalar variables
- Store the two values into the DBM file as key-value pairs
- Try running your each3 script several times
and observe the output.
|

each2
|

each3
|