Thanks, both of you. I did some experimenting.
The the final end statement needs to be on it's own line, no preceeding indents/tabs/spaces, and must be followed by at least one line break.
I didn't find any of those specifics in the tutorials I have been looking at.
Thanks, again.
Brian
print <<ENDHTML;
....your HTML code (or text) here.....
ENDHTML
I've tried the above function from tutorials (using cut and paste) and typing it several times on my own, and I have not once gotten it to work successfully.
Each time there is the error message: Can't find string terminator...
Thanks, all,
Good words and advice. I appreciate it much.
Brian
(except I'm still working on this one:
:pe sub z{system("clear");VIM::MSG("Got Perl?")}
so i can do
:pe z
Kordaff
hmm)
Actually, I'm not really trying to cut corners learning perl. I was just thinking about a Regex editor that I have which gives a tree-like explanation of every expression and portion of an expression as you type them. Thought something like that might be of value.
Also getting the script or the...
I'm starting pretty close to the beginning, and wondering if there is a program which is appropriate for editing, learning, and running examples of code - such as from tutorials.
I have downloaded ActiveStates's Komodo as a trial and will need to decide if it's right to buy some time soon. I've...
This seemed like an appropriate place to post my commendation of Fish's efforts on my behalf.
Because of his coaching, I have been able to adapt a script I have been working on, to become and perform as another similar and very useful XML editor.
Although I'm very early in the learning process...
Once again, Fish, I thank you heartily (did that in every post you made here).
I have the form and the script up and running. It's performing well. Lots of musical notes to compare, I suppose. I also am going to be the busiest this week of any other time of the year. Been so for a week or so -...
Fish,
Got all that and understand. I fixed the double << thing and moved the comment line down to the bottom of the Email address section - seeing it add email addresses correctly to the bottom of the section. Good thinking, of course.
I'll look into the "file lock concept" and also try to...
OK, again... excellent this time!
I tried your souped up version and, BINGO!, that worked almost exactly as I've hoped - almost.
The added email addresses are being placed BEFORE the comment line <!-- END OF AUTOMATIC ENTRIES --> Seems like it should come after.
...and the <expression, etc...
OK...
I've been able to run the form, get it to run the script (your first rewrite - haven't tried the revved up sample yet), and the script runs to the end (little "no boo boo" print out at the end of it). That's progress for me.
The "c is not a registered protocol" thing was coming from the...
Thank you very much, Fish. (hope that's an acceptable use of name calling). I presume you are in GB. Perhaps the time difference is somewhat of an advantage, as "sleeping on it" has always been good.
It seems like I'm always trying on something new (to me) or different, but usually want...
Fish,
I just read the etiquite and protocol requirements for this board late last night. I understand now the mistake that I have made in asking for a complete solution. Unfortuanately I have been unable to find anything close to what I need as a commercial product, or anyone who wants to make...
Well, although the result of your change (Fish) to the script is unusual (not yet correct), I consider this to be progress.
Running the script directly (without the final section to write back a "Success Notification") the xml file is opened, and written to (rewritten?). The entire original...
OOps,
I missed your response this morning, Fish, before I wrote the immediate above. I'm just finding it and will try it as soon as possible.
Thanks.
Brian
Ok... Two more issues:
Software error:
Can't find string terminator "EndStart" anywhere before EOF at c:\PROGRA~1\APACHE~1\apache\cgi-bin\test.cgi line 39.
This comes up when attempting to run the CGI directly from the browser. Line 39 now is the start of the "Print return message" section -...
Thank you, Fish,
I'm sure I like the way you think also. Unfortunately, I don't understand anything about what you're thinking - except the part about the quotes around the xml file location string. I did notice some errors talking about unexpected escaped characters in that line. I have some...
In another thread, I have been asking for assistance getting an HTML form to call a script which will open an XML file, find a specific line, and add another line using the form's input data to modify that new line. (it's adding an email address to a whitelist)
I have the form and a script...
Bruce,
Please read my previous post (just above your last one) which clearly indicates that I am using Apache on Windows.
My shebang line is correct. I am using it in several other Perl scripts which run successfully on that server.
So far I have had a bit of success discovering where a...
Jon,
I can't let this alone and don't know where else to go frankly.
After finding a suggestion about placing a print statement:
print "Content-type: text/html\n\n";
print "No boo boo!";
exit;
at the top of the script (just under the shebang line), running the script, and moving it down...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.