(Link to AcmlmWiki) Offline: thank ||bass
Register | Login
Views: 13,040,846
Main | Memberlist | Active users | Calendar | Chat | Online users
Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album
05-03-24 06:40 AM
0 users currently in Programming.
Acmlm's Board - I3 Archive - Programming - Perl New poll | |
Add to favorites | Next newer thread | Next older thread
User Post
emcee

Red Super Koopa


 





Since: 11-20-05

Last post: 6283 days
Last view: 6283 days
Posted on 12-29-06 06:24 AM Link | Quote
What do you think of Perl?

And to keep this from being a six word post, here is a sentence simply added to make the post longer.
spiroth10

Paratroopa


 





Since: 01-28-06
From: USA

Last post: 6283 days
Last view: 6283 days
Posted on 12-30-06 11:47 PM Link | Quote
I don't use it, but from what I've seen I hate the syntax. I also have no real use for the language.

I don't like the idea of glyphs (I think thats what they're called) to mark variable types. The C/C++ style variable assignment (int, char, etc...) seems to make code easier to read, and understand, albeit 1 second longer to type.

on the web, PHP has pretty much replaced perl. Perl is still used, but not nearly as much as it used to be, and PHP is pretty much the most popular web scripting language out there now, probably due to it's c-style syntax and simplicity, as well as speed, security and cost.

off the web, it is pretty much useless to windows users, but still maintains great functionality in Unix for building bigger, more complex scripts that shell scripting just can't handle. Although in all my Unix admin years, I have never found it necessary or helpful to use perl. I just never had the need to, and shell scripts and python served me just fine.

that brings in python to my argument. Python is, arguably, a lot more useful as a general language than perl, and with bindings to Tk, Qt, and GTK, general applications are easier and faster to write than in perl.

Although perl still serves its original purpose in that it is superior for extracting, editing, and reporting text. Hell, I've seen scripts that find/edit text in perl that are beyond the basic language in simplicity for that kind of thing. I gave up trying to do it in C++ and python, but a simple search on the web gave me of an example that was only a few lines long, and 100 times simpler than what I was trying to in C by comparison.

so overall, I'd say it depends on your needs/preferences. If you dislike OOP and python syntax, it may be a better general purpose language for you, but perl isn't seen/heard of much in the windows world. If you need to write scripts to do text editing, I'd say perl bar none. On, the web, I don't really think perl is much of a contender. PHP has become to popular, and (dare I say it?) too damn sexy.

keep in mind that I base all that I have said from scripts that I've seen. I have never written a single perl script myself, and honestly, I don't plan to in the near future. I would, I just don't have a reason to bother using the language now, so no hard feelings perl buffs.
emcee

Red Super Koopa


 





Since: 11-20-05

Last post: 6283 days
Last view: 6283 days
Posted on 12-31-06 03:44 AM Link | Quote
PHP in a lot of ways is better suited for server side web scripting. Mainly because that's what it was designed for. Perl tends to be much more powerful, but its often overkill. Although I don't agree that PHP has replaced Perl in that area, I'm pretty sure Perl is still the dominant language.

The symbols used with variables in Perl don't do the same thing as int and char in C, those show data type, rather then variable type. Perl is a high level language, data types are based on context, its not necessary to declare data types. The symbols, called sigils, ($, @, %), show variable type, and are part of the variable name, not just used when declaring a variable.

A lot of the complaints people have with Perl come from expecting it to work like other languages. Which is a somewhat valid argument, since the major differences (like for instance the way variable and data types work) tend to increase the learning curve.

Admittedly, Perl isn't for everyone, its a very loose, and purposely unrestrictive language. It "doesn't try to tell the programmer how to program". This is what I love about Perl. This is also what others hate about it.

But if you take the time to learn and understand the language, its has many advantages over other languages. As its motto says: "It makes easy tasks easy and difficult tasks possible". Batch parsing and editing jobs can normally be done with no more then a command line argument to the interpretor. But I've also used it for more complicated jobs (such as a GUI for a game system, with earthbound styles menus with "slide in" window effects, sounds and on screen controls) that I wouldn't even attempt with a less powerful language. Even Python or Java would have likely required more work, time, a code, and would have resulted in a more resource intensive program.
Add to favorites | Next newer thread | Next older thread
Acmlm's Board - I3 Archive - Programming - Perl |


ABII

Acmlmboard 1.92.999, 9/17/2006
©2000-2006 Acmlm, Emuz, Blades, Xkeeper

Page rendered in 0.028 seconds; used 359.44 kB (max 424.21 kB)