in reply to Delete repeated Hash's / HOH's
How can i handle repeated data in my hashes? Both HOH or %hash.
Here is a sample hash:
$students{"Sally Cummings"}=( { "year"=>"1", "GPA"=>"3.3", "major"=>"Undecided", "email"=>"scummings\@school.edu" }
Here is a sample HOH:
%students = (); $students{"Nick Plato"}=( { "year"=>"2", "GPA"=>"2.5", "major"=>"Phys. Ed.", "email"=>"nplato\@school.edu" } ); $students{"Mary Pitts"}=( { "year"=>"4", "GPA"=>"4", "major"=>"Economics", "major"=>"Economics", "email"=>"mpitts\@school.edu" } ); $students{"Sally Cummings"}=( { "year"=>"1", "GPA"=>"3.3", "major"=>"Undecided", "major"=>"Undecided", "email"=>"scummings\@school.edu" } $students{"Sally Cummings"}=( { "year"=>"1", "GPA"=>"3.3", "major"=>"Undecided", "major"=>"Undecided", "email"=>"scummings\@school.edu" } );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Delete repeated Hash's / HOH's
by perlplexer (Hermit) on Apr 10, 2002 at 18:03 UTC | |
|
Re: Re: Delete repeated Hash's / HOH's
by RMGir (Prior) on Apr 10, 2002 at 18:05 UTC |