in reply to Re: Re: Hashes/ Simple Database
in thread Hashes/ Simple Database
The input is of course comparable.for my $author (keys %book) { print FILE $author; while (my ($book,$borrow) = each %{$book{$author}}) { print FILE ':' . $book; print FILE '/' . $borrow if $borrow; } print FILE "\n"; }
Note: since this is homework I probably should not have given you that code, but well I did anyway....
|
|---|