Gossamer Forum
Home : General : Perl Programming :

backticks in database file ???

Quote Reply
backticks in database file ???
Hello Perl-Pro's

I have a complete Polling script named RobPoll (http://rob.webking.com/) that works with a delimetered database. Only not with |, but with ``.

MY QUESTION IS:
Does the fact that perl executes anything between `` have effect on the scrip?
If Yes, will the script be faster if I replace alle `` with |, so that perl wont think it have to execute anything?

If so, will this:
Code:

print FILE "$r[$a]";
print FILE "``";

have to be this:
Code:

print FILE "$r[$a]";
print FILE "|";

And will this:
Code:

($num_questions,$nochop) = split(/``/,$lines[0]);

have to be this:
Code:

($num_questions,$nochop) = split(/\|/,$lines[0]);



Or does anyone know a better pollig script that can display the questions AND results as SSI? And that has a great admin-feature?

Please let me know?

Greeting,

Chris

Last edited by:

Alex: May 28, 2007, 12:30 PM
Quote Reply
Re: backticks in database file ??? In reply to
Backticks when used in a string context do not execute anything. So print FILE "``" is not running any code or executing anything.

Replacing the delimiter from `` to | won't affect the speed much.

Cheers,

Alex