|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
OK, I've been working on setting up a CGI file with embedded HTML for a particular page of my site. I continually was receiving error 500 messages, however, and narrowed down the problem to the @ sign being present in the document. Apparently, whenever the @ sign is followed by two or more letter characters, it throws an error.
I have no idea why this is happening and would like to know how to fix it. So if you have any advice, I'd be appreciative. The file I've been working on is at: http://www.cybrport.net/spiritual/index.cgi Note that currently you can access it, because I've replaced all of the @ signs in it. At this point, I'm just trying to get the CGI working properly before I finish all the programing, that's why it appears now just as plain HTML. Thank you! ------------------ Tyler R. Tate trtate@cybrport.net http://www.cybrport.net |
|
#2
|
|||
|
|||
|
If a @ character is within a double-quoted string, you need to escape it -> @. If this is not the case, show us your code.
|
|
#3
|
|||
|
|||
|
yes, that is right. if you have the '@' symbol within printed HTML (such as what you are speaking of), you must replace it with '@' or it will return an error. so, an example would be like if you had an e-mail address in there (like 'abc123@somewhere.com'), you would put a backslash before the '@' (like 'abc123@somewhere.com'). and then this should solve your problem. however, if it doesn't, please post back and we'll help get it sorted out. later. Cujo [This message has been edited by CujoRbd (edited September 25, 2000).] |
|
#4
|
|||
|
|||
|
>>'abc123@somewhere.com'
You don't need to for Single-quoted. |
|
#5
|
|||
|
|||
|
i was simply denoting it. i probably should have used double-quotes, but i just didn't think about it.
yes, that is right. there is no need to do it within single-quotes. ------------------ |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > The @ sign in PERL script problem... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|