-----Original Message-----

One of the columns I'm calling out of my database is the email one. I'ts in 
MAPI format, so I need to extract the very last part. So the bottom example 
I would need to grab

JDoe

MAPI:{Doe, John}EX:/o=Company/ou=Site/cn=Recipients/cn=JDoe


Then I can append the rest as

[EMAIL PROTECTED]

Every one is the same format,

MAPI:{Smith, Jane}EX:/o=Company/ou=Site/cn=Recipients/cn=LJSmith

Any help greatly appreciated.
Thanks in advance
Steve

-----------------------

I know there's probably a better way to do this, but...

my $field='MAPI:{Doe, John}EX:/o=Company/ou=Site/cn=Recipients/cn=JDoe';
my @bla = split(/=/, $field);
print pop(@bla);


- Chris




_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to