Perl?

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

User avatar
thbp
Chaos Rift Regular
Chaos Rift Regular
Posts: 132
Joined: Tue Dec 08, 2009 5:32 pm
Current Project: Learn
Favorite Gaming Platforms: PC/PS/GC/DC
Programming Language of Choice: C(++)/Perl
Location: wrestling matts
Contact:

Perl?

Post by thbp »

Ok, I have been thinking about learning Perl instead of C++. Don't ask me why but i just am not getting motivated enough to learn C++. And I have been reading bout Perl and I am liking it. I was just wondering you guy's opinion on Perl and/or past experiences with it.
XNA ========== eXtreme Nuclear Atomic
Image
Image
Image
Wrestlers have three motion: side 2 side , circle, and stalk
User avatar
dandymcgee
ES Beta Backer
ES Beta Backer
Posts: 4709
Joined: Tue Apr 29, 2008 3:24 pm
Current Project: https://github.com/dbechrd/RicoTech
Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
Programming Language of Choice: C
Location: San Francisco
Contact:

Re: Perl?

Post by dandymcgee »

Disclaimer: I have no idea what I was saying in the following and I know nothing about Perl.

The problem I have with scripting languages is that I never know what to do with them, you know what I mean? Sure I can make a hello world script, or a basic calculator, but then what? I'm not saying great things aren't possible with (insert language here, for example PHP), but other than one of the greatest server-side scripting languages (which is amazing when I'm developing a web page), what would I use it for as a stand-alone language? Guess what I'm trying to say is that I know with C++ I can use SDL or OGL to make a graphics intensive executable that runs on anyone's computer without having to have an interpreter installed, whereas something like Perl I would play with it on a web server to learn basic concepts but wouldn't know where to go after that (without learning a new language).

I would say use it to learn basic programming concepts (and to have Perl in your toolbox), then switch to something more suitable to what you actually want to accomplish (with I suppose might even be Perl itself if you're making your own web page).
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches! :twisted:
User avatar
Trask
ES Beta Backer
ES Beta Backer
Posts: 738
Joined: Wed Oct 29, 2008 8:17 pm
Current Project: Building a 2D Engine
Favorite Gaming Platforms: Sega Genesis and Xbox 360
Programming Language of Choice: C/C++
Location: Pittsburgh, PA
Contact:

Re: Perl?

Post by Trask »

I can agree with you there dandymcgee, I've run into that a few times with scripting languages asking 'What can I do with it"... the latest I was turned on to is Lua and that's simply because the ES Team is like, Lua is badass, we're doing this and this with it which caused me to look up other uses and what not. But yeah, essentially what I find to be easier is not to go into a language and asking what to do with it, but come up with a project that I want to do and see what tools make it the easiest or are the most useful. Say it calls for Perl, never used it, but after seeing some examples of how others used it to achieve a similar goal, then the fun begins and I look into said language with a purpose... how do I get my skills to be up to a level to use it for that. I cannot wait to get Lua in my game engine and start emulating some ideas I've seen and go in a few directions that I think may help me out and make life simpler with Lua vs straight C++.
MarauderIIC wrote:You know those people that are like "CHECK IT OUT I just made Linux run on this piece of celery [or other random object]!!"? Yeah, that's Falco, but with ES.
Dear god, they actually ported ES to a piece of celery!
Martin Golding wrote: "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live."
User avatar
thbp
Chaos Rift Regular
Chaos Rift Regular
Posts: 132
Joined: Tue Dec 08, 2009 5:32 pm
Current Project: Learn
Favorite Gaming Platforms: PC/PS/GC/DC
Programming Language of Choice: C(++)/Perl
Location: wrestling matts
Contact:

Re: Perl?

Post by thbp »

i'm going for like a database of recipes (that converts stuff to biger messures and other things liek that)
XNA ========== eXtreme Nuclear Atomic
Image
Image
Image
Wrestlers have three motion: side 2 side , circle, and stalk
User avatar
hayk0510
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 21
Joined: Tue Mar 10, 2009 11:03 pm

Re: Perl?

Post by hayk0510 »

That's an interesting post dandymcgee.

Technically if a programming language is turing complete, then it can everything that any other turing complete language can. When you say scripting language, I assume you mean a programming language that is interpreted.. rather than compiled, in which case the main concern is the efficiency of the language. They should be able to accomplish the same task (given equal libraries, and of course computational power).

It's actually quite interesting, because I'm at the opposite end :) I don't like going down the ladder of abstraction (unless I absolutely have to). The online communities I go to are all about Python, Lisp, Haskell, Ruby. Here it's like C and C++, which is a refreshing change. Of course, the domains are quite different (game programming vs web startups). Programming languages are actually headed down a very interesting path. With multi-cored processors, we'll have to start programming concurrently. This is done with pure functional languages because they are stateless, and their functions have no side effects. I can imagine game programming would be pretty difficult without states.. but I've heard there are ways you can fake them.
"Manually managing blocks of memory in C is like juggling bars of soap in a prison shower: It's all fun and games until you forget about one of them."
User avatar
Falco Girgis
Elysian Shadows Team
Elysian Shadows Team
Posts: 10294
Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:

Re: Perl?

Post by Falco Girgis »

Perl is what we bust out when we need a quick-and-dirty script to do something useful. It's amazing at text processing, regular expressions, and performing tasks on Linux/Unix-based systems.

It was also the first real (non-web) language that I ever learned. It's great for a beginner.
User avatar
eatcomics
ES Beta Backer
ES Beta Backer
Posts: 2528
Joined: Sat Mar 08, 2008 7:52 pm
Location: Illinois

Re: Perl?

Post by eatcomics »

I actually did Perl for a while and I made some fun stuff :D I actually plan on using it for tools as well because it's good at parsing and such. That and I might use it on a website, never know :D

(on a side note I have ubuntu on my old laptop and I love it. Only my wireless card isn't working... I have to get that sorted out before I can really start digging into it :D )
Image
kendricktamis
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 3
Joined: Wed Mar 03, 2010 1:41 am

Re: Perl?

Post by kendricktamis »

I use to teach perl languge to my student. I love this language because Perl provides infrastructure for many common programming tasks, such as string and list processing. Other tasks, such as memory management, are handled automatically and transparently. Programmers coming from other languages to Perl often find that whole classes of problems that they have struggled with in the past just don't arise in Perl.
wearymemory
Chaos Rift Junior
Chaos Rift Junior
Posts: 209
Joined: Thu Feb 12, 2009 8:46 pm

Re: Perl?

Post by wearymemory »

dandymcgee wrote:The problem I have with scripting languages is that I never know what to do with them, you know what I mean? Sure I can make a hello world script, or a basic calculator, but then what?
Then Perl is similar to C/C++ in that aspect, until you start using third-party APIs. :twisted:
dandymcgee wrote:what would I use it for as a stand-alone language? Guess what I'm trying to say is that I know with C++ I can use SDL or OGL to make a graphics intensive executable that runs on anyone's computer...
The same can be said about Perl:
http://sdl.perl.org/index.html
http://graphcomp.com/pogl.cgi

There are quite a few bindings for Perl that seem to interlace the two languages' commonly used APIs. They're both quite competitive and each excel in their own fields. You're not at any real disadvantage by learning one over the other, but learn both if you don't get too clammy in Perl.
User avatar
dandymcgee
ES Beta Backer
ES Beta Backer
Posts: 4709
Joined: Tue Apr 29, 2008 3:24 pm
Current Project: https://github.com/dbechrd/RicoTech
Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
Programming Language of Choice: C
Location: San Francisco
Contact:

Re: Perl?

Post by dandymcgee »

GyroVorbis wrote:Perl is what we bust out when we need a quick-and-dirty script to do something useful. It's amazing at text processing, regular expressions, and performing tasks on Linux/Unix-based systems.

It was also the first real (non-web) language that I ever learned. It's great for a beginner.
jobypollard wrote:It's amazing at text processing, regular expressions, and performing tasks on Linux/Unix-based systems.
What the hell made you think it was a good idea to revive a 5-month-old thread by copy/pasting a sentence from Falco's post?? :nono:

@Weary: by Dandymcgee on Dec 30, 2009 Better late than never. ;) I'll forgive you for jobypollard's dumbass revival.
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches! :twisted:
wearymemory
Chaos Rift Junior
Chaos Rift Junior
Posts: 209
Joined: Thu Feb 12, 2009 8:46 pm

Re: Perl?

Post by wearymemory »

dandymcgee wrote:
GyroVorbis wrote:Perl is what we bust out when we need a quick-and-dirty script to do something useful. It's amazing at text processing, regular expressions, and performing tasks on Linux/Unix-based systems.

It was also the first real (non-web) language that I ever learned. It's great for a beginner.
jobypollard wrote:It's amazing at text processing, regular expressions, and performing tasks on Linux/Unix-based systems.
What the hell made you think it was a good idea to revive a 5-month-old thread by copy/pasting a sentence from Falco's post?? :nono:

@Weary: by Dandymcgee on Dec 30, 2009 Better late than never. ;) I'll forgive you for jobypollard's dumbass revival.
:bow:
D'oh! Perhaps someone should write an app that generates a warning if it detects an overly abundant period of time between replies. :oops:
wearymemory wrote:I can't help but think that jobypollard is a bot, what with the sex advertisements and copying the posts of other people
User avatar
thbp
Chaos Rift Regular
Chaos Rift Regular
Posts: 132
Joined: Tue Dec 08, 2009 5:32 pm
Current Project: Learn
Favorite Gaming Platforms: PC/PS/GC/DC
Programming Language of Choice: C(++)/Perl
Location: wrestling matts
Contact:

Re: Perl?

Post by thbp »

dude this topic is sooo!!! dead...
XNA ========== eXtreme Nuclear Atomic
Image
Image
Image
Wrestlers have three motion: side 2 side , circle, and stalk
User avatar
eatcomics
ES Beta Backer
ES Beta Backer
Posts: 2528
Joined: Sat Mar 08, 2008 7:52 pm
Location: Illinois

Re: Perl?

Post by eatcomics »

dude... that was like a month ago... its dead... KEEP IT DEAD
Image
User avatar
WSPSNIPER
Chaos Rift Regular
Chaos Rift Regular
Posts: 145
Joined: Sun Jan 03, 2010 6:19 pm
Current Project: top down shooter
Favorite Gaming Platforms: ps3
Programming Language of Choice: c++

Re: Perl?

Post by WSPSNIPER »

eatcomics wrote:I actually did Perl for a while and I made some fun stuff :D I actually plan on using it for tools as well because it's good at parsing and such. That and I might use it on a website, never know :D

(on a side note I have ubuntu on my old laptop and I love it. Only my wireless card isn't working... I have to get that sorted out before I can really start digging into it :D )
i had the same problem... i actually cant remember how i solved it but i think i may have reinstalled the driver or somthing... just google it and you should find the solution
User avatar
eatcomics
ES Beta Backer
ES Beta Backer
Posts: 2528
Joined: Sat Mar 08, 2008 7:52 pm
Location: Illinois

Re: Perl?

Post by eatcomics »

WSPSNIPER wrote:
eatcomics wrote:I actually did Perl for a while and I made some fun stuff :D I actually plan on using it for tools as well because it's good at parsing and such. That and I might use it on a website, never know :D

(on a side note I have ubuntu on my old laptop and I love it. Only my wireless card isn't working... I have to get that sorted out before I can really start digging into it :D )
i had the same problem... i actually cant remember how i solved it but i think i may have reinstalled the driver or somthing... just google it and you should find the solution
sorry I fixed that long ago xD
Image
Post Reply