David wrote: > Gregg R . Allen wrote: > >> It was close but what I got is : "JohnDoe.com" Instead of >> "[EMAIL PROTECTED]". >> >> I think it has something to do with escaping the "@" sign. I've been >> experimenting, but without much luck. >> > > that's because Perl thinks @Someplace is an array. if you have warning > enable, Perl will probably tell you that @Someplace is undef. either put > the string in single quote like: > > '[EMAIL PROTECTED]' > > or escape the @ character like: > > "[EMAIL PROTECTED]' > > and apply your reg. exp again.
and add use warnings; use strict; to every program you write. period. This will help you catch a LOT of oddball errors that aren't obvious from just looking at the code. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]