It looks like that is the answer though, in a roundabout way. Teddy, if this is for output into an HTML page, no, it won't show up because < and > are special chars. You need to HTML encode them, manually or otherwise.
This should work: $line = "<orasnita\@yahoo.com>"; print $line; Rob -----Original Message----- From: Richard Crawford [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 06, 2002 12:43 PM To: Richard Crawford Cc: Octavian Rasnita; [EMAIL PROTECTED] Subject: Re: printing an email address D'oh! This won't work in Perl. For some reason I thought I was answering a PHP question. Damn flu. My apologies if I confused anyone. Richard On Wed, 2002-02-06 at 09:34, Richard Crawford wrote: > Try this: > > $line = "<[EMAIL PROTECTED]>"; > > Alternatively, > > $line=htmlspecialchars("<[EMAIL PROTECTED]>"); > > On Wed, 2002-02-06 at 19:11, Octavian Rasnita wrote: > > I tried to print my email address when it is enclosed in < and > signs but > > it didn't print anything. > > The code: > > > > my $line; > > $line= "<orasnita\@yahoo.com>"; > > # I also tried with $line = \<orasnita\@yahoo.com\>"; > > print "$line"; > > > > Nothing is printed. It prints only if I don't use the < and > signs. > > Thank you! > > > > > > Teddy, > > My dear email address is [EMAIL PROTECTED] > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]