It shows that you are unregistered. Please register with us by clicking Here
![]() |
|
![]() |
![]() | Register - FAQ - Today's Posts - New Posts - Support - Search | ![]() |
|
|
#1 (permalink) |
|
Junior Member
Join Date: Jul 2006
Age: 51
Posts: 6
|
Hi folks, I'm a bit new to Perl and still am working my way through it, so bear with me.
I want to generate webpages. (Of course!) All that changes is the middle of the page. I slurp in the top half of the page like so: undef $/; $file = "mptop.txt"; open INPUT, "$file"; $mptop = <INPUT>; close INPUT; # slurped in top And then the bottom half in a similar manner. Then I go to print it: # write in the top part of the HTML print "document.write(\'$mptop\')\;"; But all I get is a blank page and the usual nondescript error in the SUEXEC log showing my script's name. I perform no operations on the slurped in string. I'm merely copying it out of the file and into the webpage I'm generating (it's in a file because I don't want to deal with the HTML in the .pl file itself). Any suggestions would be much appreciated, and thanks in advance! Jeremiah |
|
|
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Writing Services | articlewriter | Services | 12 | 05-30-2007 10:27 AM |
| Content Writing Service. | kibeth | Content | 4 | 03-23-2007 06:00 PM |
| Writing Services | kconnections | General Business Issues | 4 | 10-04-2006 04:25 PM |
| Writing Off My Car for Tax? | jordan | General Business Issues | 6 | 07-31-2006 10:06 PM |
| Two questions on die{} and writing error to file | samuel | Perl | 0 | 07-27-2006 04:04 PM |