Valhalla Legends Forums Archive | General Programming | Anyone heard of the language Perl ?

AuthorMessageTime
Tron
My mom's friend helped build it, pretty new, but I don't think you guys have heard of it. I'm gonna give it a shot since i'm relatively new to programming. Anyways, it's at http://www.perl.com if anyone wanted to know.
July 5, 2003, 1:08 PM
iago
I learned it a couple years ago, and it's a pretty good language. It has a lot of overhead, though, being an interpreted language, but it works well with CGI and web programming. It's unfortunate that to use it you have to have it installed in on the server and you have to be able to chmod your .pl files, so many servers (especially free ones) don't support perl.

I do enjoy using it, though, but I would learning c++ first. In case you're wondering, this is the order that I learned languages:
Basic, Visual Basic, Perl, C++, C, Java. My favourites are C/C++, Java, Perl/Visual Basic.

In my opinion, Perl/VB both have specific purposes but are limited too much to be terribly useful to me.
July 5, 2003, 4:18 PM
j0k3r
I found perl and php to be identical (although I haven't learned perl yet, I can read it fine and it seems to work the same as php) but php seems to be growing faster and taking perl's place.

Order I went in was:
HTML, VB, PHP, Turing, and currently working on C++. The easy languages are good to teach basics... But are also limitedely(sp?) useful.
July 5, 2003, 7:14 PM
herzog_zwei
Perl's not that new; it's been around since the late 80's.

Perl is, IMO, the best text processing language. It's got the best regular expression parser around. It's very good for writing up quick scripts. It's very flexible and you can integrate it into other languages or vice versa. The reason for Perl being slow is because it needs to parse and compile the script before it runs. Think of it as more of a virtual machine than an interpreter. If you do it properly, the overhead in compilation isn't that bad (look into mod_perl if you want fast Perl scripts for web servers). There's also a Perl compiler for it as well.

PHP is a baby compared to Perl. PHP is designed more for web based apps than anything else (though it can be used to do other things). Perl is general purpose. It takes more time to learn Perl well than PHP well. PHP generally comes with everything already in it; Perl usually come with a certain amount of modules and you'd have to add in more to make it do more advanced stuff (unless you want to write those modules yourself). Perl wasn't designed for web based apps, but it's better suited for it (more scalable) than PHP if you get the necessary modules.

The real problem with Perl is that as you get into more advanced stuff, things can become much more cryptic and it'll take time to decrypt what's going on so you can fix some bug if you haven't looked at it in a long time. Also, Perl6 intends to break the old regular expression syntax so it can lead to headaches if you have to port it over from Perl5. However, it should make the regex better than it currently is (which is impressive since it's already the best) (to give you an idea of how good it is, it can handle validation of say phone numbers in many different formats and return it in a normalized form in say 2 lines of code (or a few more lines to do it properly) while doing the same thing in something like C without a regular expression parser would takes tens of lines).
July 5, 2003, 8:14 PM
Camel
[quote author=Tron link=board=5;threadid=1811;start=0#msg13918 date=1057410500]My mom's friend helped build it, pretty new, but I don't think you guys have heard of it. I'm gonna give it a shot since i'm relatively new to programming. Anyways, it's at http://www.perl.com if anyone wanted to know.[/quote]
Uh, perl isn't new; it's been around forever.

And yes j0k3r, perl, php, c, and quite a few others are very similar. They are not, however, exactly the same.
July 5, 2003, 9:06 PM
Tron
Eh, my mom just said that so... lol. I learned HTML then Javascript, and now i'm trying to learn visual basic or possibly C++. I liked the whole built in compiler with perl though.
July 6, 2003, 12:45 AM
j0k3r
VB = waste of time dude, I can't even stand the site of it (however, I do find it VERY organized with functions and whatnot).
July 6, 2003, 2:14 AM
Camel
HTML isn't a programming language. It's a markup language. Javascript is only a half-language, as is vbscript (they're exactly the same aside from syntax) -- they are intended to extend programs, not write them. Perl is sort of an unspoken language; it's very powerful yet it isn't very presentable. It's excellent for doing back-end work such as CGI, but rarely used for standalone programs. I would love to see Visual Perl in Visual Studio 8. :)
July 6, 2003, 3:40 AM
Tron
Yeah me too, I got visual studio but i'm still learning the basics. Mine didn't come with the help tutorials though so it's kinda hard.
July 6, 2003, 5:56 AM
timbo
[quote author=herzog_zwei link=board=5;threadid=1811;start=0#msg13950 date=1057436097]
Perl is, IMO, the best text processing language. It's got the best regular expression parser around.
...
The real problem with Perl is that as you get into more advanced stuff, things can become much more cryptic and it'll take time to decrypt what's going on so you can fix some bug if you haven't looked at it in a long time.[/quote]

that is what it was designed for
...
yes, the shortcuts can make it difficult to read if one doesnt know them.
July 6, 2003, 11:47 AM
Grok
[quote author=Camel link=board=5;threadid=1811;start=0#msg13998 date=1057462857]I would love to see Visual Perl in Visual Studio 8. :)[/quote]

You mean 9.

I think 8 is "Microsoft Visual Studio .NET 2003".
July 6, 2003, 1:14 PM
DarkMinion
I need to get up to date, I only have VS 6 :(
July 6, 2003, 2:05 PM
Yoni
VS 6 is pretty sufficient. I found most of the differences between 6 and 7 are cosmetic. (I am speaking as a person who doesn't use .NET.)
July 6, 2003, 5:29 PM
K
VS6 C++ ISO compliance: 85%
VS .NET: 90%
VS .NET 2003: 98%

apparently vs.net 2003 can finally completely build the blitz, boost, and loki libraries. woo.
July 6, 2003, 5:47 PM
Skywing
[quote author=Grok link=board=5;threadid=1811;start=0#msg14012 date=1057497243]
[quote author=Camel link=board=5;threadid=1811;start=0#msg13998 date=1057462857]I would love to see Visual Perl in Visual Studio 8. :)[/quote]

You mean 9.

I think 8 is "Microsoft Visual Studio .NET 2003".
[/quote]

Microsoft Visual Studio .NET 2003 is 7.1, actually.
July 6, 2003, 8:05 PM
Etheran
I still have Visual Studio 2003 Final Beta installed.. eww
July 6, 2003, 10:07 PM
St0rm.iD
Last time I installed .NET it fucked me up...anyone want my copy of VB.NET?
July 10, 2003, 4:47 PM

Search