Web Hosting Talk







View Full Version : Perl/cgi coders not needed these days?


CritticAge
06-19-2002, 03:21 AM
Do most people just want php?

seg fault
06-19-2002, 03:22 AM
Pretty much - alot less messy

Marcus Lau
06-19-2002, 03:31 AM
yah...it is much easier compare to perl and cgi because i used to have a vB. :)

davidb
06-19-2002, 03:52 AM
I have always used perl and I like it. It gets the job done :)

xerocity.com
06-19-2002, 03:59 AM
I prefer perl. Once you get the hang of it you'll never let go. I am fluent in both languages, but I still keep going back to perl. :D

CritticAge
06-19-2002, 04:10 AM
Yeah, I am Perl myself though I have looked at PHP. It is really much the same just faster. But I am going to stick with Perl, I know DBI (how to use Perl and database eg. MySQL) so :D

davidb
06-19-2002, 04:16 AM
I tried to hack a php script one time, HATED it, couldnt do jack.

ToastyX
06-19-2002, 04:18 AM
I like C. C can do anything. :)

WebmastTroy
06-19-2002, 04:20 AM
Perl was the first language that I learned, and I haven't moved away from it. I find that I learn all kinds of things almost everyday, and I've been using Perl for about 3 years now.

Its amazing looking at all of the Perl modules available and coming up with ideas on how to use them.

I've thought about moving onto other languages, but Perl keeps throwing me curveballs. :D

mlovick
06-19-2002, 04:21 AM
CGI for server backend stuff
PHP for dynamic web sites.

:D

CritticAge
06-19-2002, 04:46 AM
Also, you know what I found. That there is not many tutorials for DBI on the internet. When I decided I needed to learn it, I found 3 websites. All the rest I taught myself :). I think someone should write/type some more ;)

Jake29
06-19-2002, 01:57 PM
For learning perl, you absolutely cannot beat a short subscription to safari.oreilly.com . You can get 10 top notch perl books for like $15 a month. It's easy to find a free trial for 14-30 days, so if your willing to pay just a teeny-teeny bit, or at least have a creditcard, you have $100s worth of perl tutorials/references. Once you see what the books are like, you can then buy the hardcopy.

Jake

StarGate
06-19-2002, 02:21 PM
Dunno but everytime I have to install a CGI/Perl script I go like "Uh, fuss" ... Modules, CGI-BIN blah... with PHP you just upload and done...

mwatkins
06-19-2002, 02:58 PM
P Y T H O N

-- A Pythonista

mwatkins
06-19-2002, 03:00 PM
Comparing languages for simple things is... well... simplistic.

A better challenge - take your favorite language - C, Perl, Python, PHP, and build a robust web-service that deals with complex data types.

I bet you the Perl and Python folks finish the job faster.

Sometimes "go with what you know" is the best answer - most times perhaps, but there are cases where one language over another makes a big difference to productivity.

Dexter
06-19-2002, 03:22 PM
More and more request PHP but personally I don't like it. I'll take Perl over embedded script like PHP or ASP anyday...

FDrive
06-19-2002, 03:58 PM
It really depends on what's being done. I'll still use Perl for anything involving regex's and text-processing... Though I find myself leaning towards Python more and more these days. But for web frontends, there's nothing better than PHP.

mind21_98
06-19-2002, 04:19 PM
Everyone should be writing Web-based applications in assembly, or better yet, machine code. You folks just shame the creators of the computer ;)

Actually, I mainly use PHP and Perl, because they're faster to code in. I know C too, but it takes a long time to fix certain things like memory leaks in that language :rolleyes:

HostInspect
06-19-2002, 06:01 PM
Originally posted by mwatkins
P Y T H O N

-- A Pythonista

:beer: To that!

Python is not only more reliable, easier to learn, easier to code, and it can do just about anything, if you do know how. And its compatible with all systems :) No need to change code when going from one system to another.

Its great!

CritticAge
06-19-2002, 07:09 PM
I might learn C, C++ but applications just isnt my thing.

Jake29
06-19-2002, 07:21 PM
although it will be a long time before I would ever switch from perl (due mostly to cpan), I'm really liking the simplicity of php. I like the idea that all arrays are associative (like tcl), i like the simple function syntax, etc.

Although nothin' puts together a simple ftp automation client in 10 lines or less like perl :)

Jake

mwatkins
06-20-2002, 01:18 AM
You'd like Python better than PHP. Tastes great, less filling.

from ftplib import FTP
ftp = FTP('ftp.netscape.com')
ftp.login()
# warning, this is a 22MB file...
print ftp.dir('/pub/communicator/english/4.79/windows/windows95_or_nt/complete_install/cc32d479.exe')
ftp.retrbinary('RETR /pub/communicator/english/4.79/windows/windows95_or_nt/complete_install/cc32d479.exe', open('cc32d479.exe', 'wb').write)

What's really cool, very easy, is XML-RPC or SOAP with Python. Far, far easier in Python than in PHP.

Jake29
06-20-2002, 01:47 AM
Python's pretty nice. The modules aren't as mature in all cases as the comperable perl ones. For instance, last year I tried to automate a web project w/ python. I switched back to perl's LWP because it handled cookies WAY better then python's module did (when used as a web client) . Then I was thinking of using python for gui development, until i discovered tcl/tk. Haven't used perl or python for XML-RPC or SOAP yet- but it's funny- i just thinking of a idea for a SOAP project... I was leaning toward ruby, but maybe i'll re-reinvestigate :)

Jake
just { another tcl hacker}

chrisb
06-20-2002, 05:17 AM
If you don't want people to see your source code easily, I'd use perl over php. Python looks nice though. I never did like perl's ugly syntax, including using a $ (dollar sign) for everything. It should've been called "dollar" instead of "perl".

FDrive
06-20-2002, 03:12 PM
Originally posted by chrisb
If you don't want people to see your source code easily, I'd use perl over php. Python looks nice though. I never did like perl's ugly syntax, including using a $ (dollar sign) for everything. It should've been called "dollar" instead of "perl".

Perl's $s are great. It lets you "put $variables in strings". Sure beats C++, with all of its cout >> "put" >> variables >> "in strings" and whatnot.

d3fuse
06-20-2002, 03:42 PM
I refer PHP over CGI/Perl any day. It's faster, the code is 'cleaner', and it's alot less stressful when it comes to installing. Just upload and run file.

AtlantaWebhost.com
06-20-2002, 05:16 PM
I think PHP and Perl are both dead! Scheme is the way to go. There is nothing in this world quite like hacking out Lisp code!!!

(Note: I am just kidding)

Jake29
06-20-2002, 08:46 PM
You laugh, but scheme ownz. Here's an article that can not only change your attitude, it could change your life:

http://www.paulgraham.com/avg.html

xerocity.com
06-20-2002, 09:38 PM
Originally posted by Jake29
You laugh, but scheme ownz. Here's an article that can not only change your attitude, it could change your life:

http://www.paulgraham.com/avg.html

It's an interesting read. :)

AtlantaWebhost.com
06-20-2002, 10:50 PM
Scheme is a very interesting language. It is the only language I know of where there is no distinction between data and functions. You can store a procedure as a variable and then pass it to another program. It is also a prefix notation language, so if I wanted to add 3 and 5, I would use:

(+ 3 5)

Scheme is also totally functional, so for the people who absolutely loved math such as f(x) = blah, it is interesting.

(define (add5 NUMBER)
(+ NUMBER 5)
)

Is an example of a very very simple function, which returns a number added to 5, so:

(add5 3) would return 8.

But maybe I am just rambling. Scheme lends itself well to lists of data and recursive algorithms.

Best regards,
Frank Rietta

rae
06-21-2002, 03:04 AM
Im new to both php and perl/cgi. So far i like php, but perl seems like it can do more complex tasks.