Need some assistance with an array. For example, I have an array of unique email addresses (thanks to Getopt::Long) and need to send emails to every address in that array via a for loop. That said, before I enter the for loop to send the emails I need to check to see if the email address joe.q.public@anywhere.com exists. If this email address exists I'll need to delete it from the array and then send the email to everyone else in the array.
Is there a remove function? Exists will just tell if something exists, correct? (I want to remove it entirely)
Very simplied version of my array:
@email_addresses = ('joe@schmoe.com','jane@schmoe.com','joe.q.public@anywhere.com');
Is there a remove function? Exists will just tell if something exists, correct? (I want to remove it entirely)
Very simplied version of my array:
@email_addresses = ('joe@schmoe.com','jane@schmoe.com','joe.q.public@anywhere.com');