Sorting through associative array with user input
Hi there. Thanks for taking the time to read this question. It's probably something I'm missing on my part. Anyways, onto the question.
I'm working on an address book and storing the records via hashes. I want the users to be able to search for an address by using the contact number. Here's the code I came up with: Code:
print "\nEnter the number you wish to search for"; |
To empty a Perl array:
Code:
@LIST = (); Code:
if (@LIST) { ... } |
Quote:
|
Update
Yeah, it works now. I modified my code a bit. There were a few errors (e.g. not greping properly). I'll post my code up for anyone who is interested...
Code:
print "\nEnter the number you wish to search for: "; |
All times are GMT -5. The time now is 06:15 PM. |