| | #1 |
| Plundering the Web War Room Member Join Date: 2007 Location: , , .
Posts: 9,121
Thanks: 1,507
Thanked 2,622 Times in 1,932 Posts
|
I installed a cgi script, in perl I believe. Never having done that, I am clueless. Anyway, I thought I could just find the html code inside it and add anything, like adsense. When I do that, I get an internal server error. Obviously, adding an outside script must require some special notation or something. Either that, or it's impossible without an error. Do I need to use "\" in parts? Yes, I have googled it and keep getting pages not related to what I want. Any help would be appreciated. Paul |
|
If you were disappointed in your results today, lower your standards tomorrow.
| |
| |
| | #2 |
| HyperActive Warrior War Room Member Join Date: 2013
Posts: 145
Thanks: 26
Thanked 39 Times in 25 Posts
|
It is pretty easy. Put your extra stuff in a file and then do what this link says: print - perldoc.perl.org |
| |
| | #3 |
| Advanced Warrior War Room Member Join Date: 2002 Location: USA.
Posts: 612
Thanks: 440
Thanked 125 Times in 101 Posts
|
As GamerZag mentioned you can use the print command. Combining an external file via the print command is a good way too. Here's how ... Perl include file dynamically - Stack Overflow Yes you'll need to escape some of the html to get it to place nice with perl. IE: See this page ... http://www.perlmonks.org/?node_id=401006 Scroll down to "escape characters" There's more possible clashes but this is the only one you mention specifically. Have you thought about flipping to PHP ... Perl is almost dead so hate to see you put a lot of work into it. With php you can simple use "include" and have the code in a separate file. PHP will also require escaping if you wish to have it hardcoded. |
| | |
| |
|
| Bookmarks |
| Tags |
| adding, adsense, cgi |
| |