PDA

View Full Version : First time using perl


MTDesigns
10-05-2000, 04:44 PM
Hi!

I'm going to be adding a few scripts on my site, but I've never worked with perl scripts before ... just cgi and java.[nbsp][nbsp]Is there something I'll need to know in order to add perl scripts?[nbsp][nbsp]Will I have to chmod something or other?[nbsp][nbsp];D

Thanx much,

Joi~

Dan Kaplan
10-05-2000, 05:58 PM
Have no fear, Perl and cgi is effectively the same thing.[nbsp][nbsp]:)

Dan

MTDesigns
10-05-2000, 06:14 PM
Cooool....looking forward to figuring this one out :)!

Thanx!

Joi~

YFS200
10-06-2000, 12:22 AM
Tool Time Tip:

When installing a perl script, skip the chmod part in the install. FQ normal default settings work 99% of the time.[nbsp][nbsp]If you can't get the script working, then go back and chmod things.

YFS200

mike_w
10-06-2000, 12:40 AM
Or, when in doubt just chmod 755 the script. And, if the script won't run, from the command line do - perl -c scriptname. That will give you a very good idea of where your script is failing.

Speaking of perl, the recently released third edition of Programming Perl is a huge improvement over the second edition. I never really liked the second edition. It was sorely lacking in many areas.

Justin
10-06-2000, 02:21 AM
Have no fear, Perl and cgi is effectively the same thing. CGI stands for Common Gateway Interface. CGI is not a programming/scripting language, it is an Interface between a program and a web server.

Perl is a scripting language. Perl is used for *many* non-web related functions, and is not necessarily intended for use in CGI scripts.

You can write a CGI script in any language supported by the web server. It can be C/C++, Perl, PHP, bash, Java, or whatever. I probably have more PHP and bash CGIs running that I do Perl scripts...

Just wanted to clear that up ;)

------------------
Justin Nelson
FutureQuest (http://www.FutureQuest.net/index.php) Support