Perl Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPerl Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old September 24th, 2000, 12:40 PM
HyperWhiz HyperWhiz is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Posts: 4 HyperWhiz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old September 25th, 2000, 12:28 AM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
If a @ character is within a double-quoted string, you need to escape it -> @. If this is not the case, show us your code.

Reply With Quote
  #3  
Old September 25th, 2000, 03:18 AM
CujoRbd CujoRbd is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Posts: 16 CujoRbd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0


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).]

Reply With Quote
  #4  
Old September 25th, 2000, 04:09 AM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
>>'abc123@somewhere.com'

You don't need to for Single-quoted.

Reply With Quote
  #5  
Old September 29th, 2000, 01:12 AM
CujoRbd CujoRbd is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Posts: 16 CujoRbd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

------------------

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > The @ sign in PERL script problem...


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway