sulfericacid
Programmer
is it possible to iterate over all elements of a hash EXCEPT for some?
The script below looks for ALL hash keys/values and prints them, right?
while( my ($key, $value) = each(%emails)) {
My db is setup like:
$emails{$emails} = $name;
And that while iterations works great, it loops through all the database keys and emails them. I want to add a $time key but I dont want it read through that while loop. (i want to print when the last time the script was used but if it's looped it will start sending emails to localtime).
Would I need to start a new database or is there a way to do this?
Thanks,
sulfericacid "Age is nothing more than an inaccurate number bestowed upon each of us at birth as just another means for others to judge and classify us- sulfericacid
The script below looks for ALL hash keys/values and prints them, right?
while( my ($key, $value) = each(%emails)) {
My db is setup like:
$emails{$emails} = $name;
And that while iterations works great, it loops through all the database keys and emails them. I want to add a $time key but I dont want it read through that while loop. (i want to print when the last time the script was used but if it's looped it will start sending emails to localtime).
Would I need to start a new database or is there a way to do this?
Thanks,
sulfericacid "Age is nothing more than an inaccurate number bestowed upon each of us at birth as just another means for others to judge and classify us- sulfericacid