my %tldgif = ( '.com' => ['commercetld.gif', $comwidth], '.org' => ['organisationtld.gif', $orgwidth], '.net' => ['telcotld.gif', $netwidth], '.us' => ['usatld.gif', $uswidth], '.uk' => ['gbtld.gif', $ukwidth], '.au' => ['aussietld.gif', $auwidth], ); sub encode_email_address { my ($addy) = @_; my $tld = ""; for (keys %tldgif) { if ($addy =~ /$_$/) { $tld = "\"[$tldgif{$_}[0]]\""&@',0..9); return (encode_entities($input, $charstoencode).$tld); } #### $;=sub{$/};@;=map{my($a,$b)=($_,$;);$;=sub{$a.$b->()}} split//,".rekcah lreP rehtona tsuJ";$\=$ ;->();print$/