Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

.CGI or .PL?

by Anonymous Monk
on Jan 07, 2001 at 05:07 UTC ( [id://50299]=perlquestion: print w/replies, xml ) Need Help??

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Im using VERY basic commands, want to run it on the web. Im using tripod. buh-bye now!

Originally posted as a Categorized Question.

Replies are listed 'Best First'.
Answer: .CGI or .PL?
by blogan (Monk) on Jan 07, 2001 at 06:46 UTC
    Are you asking about file extensions or language? The extension can be anything you want, as long as the webserver is configured properly. I'd probably use .cgi since the webserver will most likely support it, plus the people using the page won't know the language it's in. This can be good for security. If they know it's perl, they can look for perl specific holes.

    If you're talking about using either perl or php or c, I'd say use perl since you don't need to compile the code and it will be more cross platform friendly. Plus you can get tons of CPAN modules to quickly develop programs. Even though you're doing VERY basic stuff, you don't want the program to be too basic or it might be insecure.

    #!/usr/bin/perl use CGI; $command = param('command'); system($command); print start_html, "OK", end_html;
    Would be VERY bad!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://50299]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-12-08 01:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which IDE have you been most impressed by?













    Results (50 votes). Check out past polls.