One other, fairly brutal and ugly, way of doing this is by playing substr games:
#!/usr/local/bin/perl -w use strict; my $email='goblins@under.the.floorboards.com'; my $length=15; my $result= eval { substr($email, $length-3) = '...'; return $email }; print $@?$email:$result;
CU
Robartes-
In reply to Re: Shorten email address
by robartes
in thread Shorten email address
by redhotpenguin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |