Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing email address 2

Status
Not open for further replies.

dunc85

Programmer
Joined
Apr 3, 2006
Messages
1
Location
GB
I have the following line of code:

print "| <a href=\"mailto:enquiries@domain.com\" class=\"link\">enquiries@domain.com</a>";


and all that is printed out is:

mailto:enquiries.com (link)
and
enquiries.com (link text)

not the full address.
 
You need to either:
- Escape the @ symbols by preceding them with a backslash
- Use single-quotes instead of double-quotes
 
perl sees them as arrays, which you haven't declared or used, so they're empty.

Paul
------------------------------------
Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top