Click to See Complete Forum and Search --> : What is Perl?
josh22x
06-11-2006, 07:51 PM
I have heard of Perl and CGI, but I do not have a clue what type of programming language it is. Is it a programming language for web pages of a computer programming language, such as C++?
What is the difference between CGI and Perl?
What are its uses and advantages?
What exactly does Perl and/or CGI code look like?
Thanks....Josh
Charles
06-12-2006, 07:10 AM
http://www.perl.org/
the tree
06-12-2006, 12:25 PM
What is the difference between CGI and Perl?CGI stands for Common Gateway Interface, it is the protocall for interacting with the server that loads of different scripting languages (such as Perl or PHP) use.
What are its uses and advantages?Perl has been called a Swiss-Army-Chainsaw, it can do practically anything, and it can do it fast.
What exactly does Perl and/or CGI code look like?Ugly, very, ugly.
Charles
06-12-2006, 12:30 PM
Ugly, very, ugly.Cruel, very cruel.
the tree
06-12-2006, 12:46 PM
Somehow, I don't think I've hurt it's feelings. Besides, it's true. The first time I saw a Perl script I couldn't tell it from a PVP encryption.
chrisranjana
06-19-2006, 07:25 AM
Yes most people faint when they see a perl regex like
string =~ m/[\)\s\-]\d{3}-\d{4}[\s\.\,\?]/
:)
Charles
06-19-2006, 07:32 AM
Yes most people faint when they see a perl regex like
string =~ m/[\)\s\-]\d{3}-\d{4}[\s\.\,\?]/
:)There's nothing that odd about that. Try some of the stuff at http://www.perlmonks.com/?node=Obfuscated%20Code .
NogDog
06-19-2006, 07:37 AM
Perl code is much like C (as opposed to C++): it can be as beautiful or ugly as the programmer's skill (or lack thereof) allows.
Anyway, it's very good at manipulating text, and HTML documents are made up entirely of text. There is also a HUGE library of third-party Perl modules and functions out there that you can use to avoid "re-inventing the wheel" when trying to execute complex tasks.
However, compared to a language like PHP which was designed specifically for web applications, Perl will have a steeper learning curve to the new web programmer.
felgall
06-19-2006, 04:22 PM
You can of course write object oriented Perl and then it will be more like C++.
You could also use C or C++ with CGI on your web site.