in reply to DBM keys/values
Joining with comma's is probably best, as I've never encountered an email address with one in it. That said, it is not actually illegal to include comma's in email addresses (as long as you escape them with backslashes, see RFC819), so there is a very small possibility you might need another string to delimit the addresses.my @unverified_emails=('test@admin.com', '1xtrsnf'); $dbm{'notverified'}=join ",",@unverified_emails; foreach my $mail (split /,/, $dbm{'notverified'}) { print "$mail is not verified!\n"; }
Update:One way to take into account backslashed commas is a negative zero width lookbehind assertion in the split regexp: /(?<!\\),/.
CU
Robartes-
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: DBM keys/values
by sulfericacid (Deacon) on Feb 13, 2003 at 04:46 UTC | |
by robartes (Priest) on Feb 13, 2003 at 09:21 UTC |