Forum Moderators: coopster & phranque

Message Too Old, No Replies

Printing an @ in Perl

         

davemarks

11:34 am on Mar 19, 2003 (gmt 0)

10+ Year Member



Can someone help please.

I'm trying to print an email address out in a perl script (Web App)

I'm using

print "<a href='mailto:xyz@xyz.com'>Email</a>

But it fails at the @ - is there anyway to get round this?

Thanks

Brett_Tabke

11:50 am on Mar 19, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



escape it:

$cheese = "foo\@foobar.com";

or use a single quote:

$email ='foo@foo.com';

davemarks

12:01 pm on Mar 19, 2003 (gmt 0)

10+ Year Member



Ahh Thanks

Should have known that. Can you tell I'm a newbie to Perl

Uni Coursework... finished it weeks ago, Went to move it from my windows server to the uni's unix server and no it falls over :( been banking my head against a brick wall for the last week, deadline tommorrow :(

Keeps throwing up this error

Software error:
Out of memory during ridiculously large request at /home/student/cems/drmarks/public_html/uqc103s1_ass/shop.cgi line 568.

which is the while loop in this bit of code

dbmopen( %hol, "$hash", 0777) or die "Failed to open Database";

while (($code, $line) = each %hol) {
@details = split(/;/, $line);
$cats{@details[0]} .= $cats{@details[0]}
}

$hash is defined as "data/wedding" which is the location/filename of the dbm files

Any help would be greatly appreciated, like I say the exact same code works no problems on my windows server :(

Thanks