x
Dear Highlander Teams, that participate in the current season. In accordance with rule 1.5 Roster locks, we no longer will allow adding players to your Highlander rosters during this season.
x
ETF2L is looking for new Staff to recruit! Are you interested in supporting the league? Then click here for more details on what we can offer and how to apply! 

Forum

Perl Question

Created 30th November 2010 @ 21:06

Add A Reply Pages: 1 2 Next »

Destrutor

Right, so I need to learn Perl. I’ve found some decent looking tutorials and stuff on the internet, my problem is when it comes to running the script I make. I’m writing with notepad++. I’m just not sure how exactly I run the script or program or w/e, like I made a hello world to start with, and figured out how to run it through cmd, but I have no idea how to run more complex scripts or programs or w/e you want to call them. What exactly do I have to do once I’ve finished coding to run it?

octochris

(0v0)

your question is very unclear. assuming you want an interpreter, and assuming you’re using windows, get strawberry perl.

http://strawberryperl.com/

DeNeusbeer

(Legend)
HoT<3

What you’re doing sounds fine?
Create the script, save it, and execute with the command line. I’m not sure what else you want to do, maybe you can elaborate?

Destrutor

So literally the only way to test the scripts is to run them through a command line? I assumed there would be some way to save as a .exe or whatnot, but I guess thats probably just visual basic (Don’t blame me, we’re force-taught it in computing at school) giving me some bad habits :D

octochris

(0v0)

Quoted from Destrutor

So literally the only way to test the scripts is to run them through a command line? I assumed there would be some way to save as a .exe or whatnot, but I guess thats probably just visual basic (Don’t blame me, we’re force-taught it in computing at school) giving me some bad habits :D

lol vb.

perl is an interpreted language. activestate does do perl2exe (which i’ve heard is decent), and of course it has commercial support.

some googling did locate http://perlbin.sourceforge.netthis[/url], but i’ve never used it.

to be honest, expecting a nice executable to come out of perl is kind of a bad idea. use a language which is designed to be compiled instead.

Skyride

DUCS

Chris give the guy a break, hes a beginner asking a beginner question, I remember thinking the same when I originally wanted to learn PHP.

But ye, bassically what Chris said. The whole point of languages like perl, PHP, python, etc,,, (well not so much python, but meh) is that you just run the code straight, you don’t need to convert it to an .exe. Right now it seems like a hassle, but once you’ve been at it for a whole and tried both types of language you’ll see there is some genuine pros (and cons) to it.

atrox_

WaAS?

I use ActivePerl (http://www.activestate.com/activeperl), runs the code. What more do you want?

Also, get Eclipse (http://www.eclipse.org/) with the perl plugin. It’s 9999999x better than notepad++


Last edited by atrox_,

Spike Himself

TC

Quoted from atrox_

Also, get Eclipse (http://www.eclipse.org/) with the perl plugin. It’s 9999999x better than notepad++

If you’re learning a language you’re best off using notepad rather than a full blown IDE that basically types the code for you ^^

octochris

(0v0)

Quoted from Skyride

Chris give the guy a break, hes a beginner asking a beginner question

what did i say? i thought my reply was reasonable…

Arie

(serveme.tf)
FB
[FB]

Why do you need to learn Perl? :)

atrox_

WaAS?

Quoted from Spike Himself

[…]

If you’re learning a language you’re best off using notepad rather than a full blown IDE that basically types the code for you ^^

I thought that at first, but in the beginning it’s extremely helpful due to it spotting errors you may have missed. I spent many a frustrated hour learning programming due to errors I didn’t understand, though, that may have been because the java compiler loves to print some shit as errors.

Spike Himself

TC

Quoted from atrox_

I spent many a frustrated hour learning programming due to errors I didn’t understand

That’s exactly how you learn to program.

And yes, java is good at giving errors like that :p

Skyride

DUCS

Quoted from atrox_

[…]

I thought that at first, but in the beginning it’s extremely helpful due to it spotting errors you may have missed. I spent many a frustrated hour learning programming due to errors I didn’t understand, though, that may have been because the java compiler loves to print some shit as errors.

Every compiler/interpreter loves to print shit as errors. Really when you’re learning though, you want to nail the syntax pretty much asap so you’re only needing to deal with logical errors and syntax errors become something you find pretty much instantly when given the line number.

atrox_

WaAS?

Quoted from Skyride

[…]

Every compiler/interpreter loves to print shit as errors. Really when you’re learning though, you want to nail the syntax pretty much asap so you’re only needing to deal with logical errors and syntax errors become something you find pretty much instantly when given the line number.

But the way I’m suggesting allows you to do that as well. After getting an error pointed out to you right away you can look at it and work out why it’s wrong and next time how to avoid it. Presuming you aren’t retarded of course.

At least, that’s the way that I did it.

Destrutor

Thanks for the help everyone, one more question though – where exactly do you put perl scripts into use, are they simply used to do certain tasks on webpages and such, or can they be used for more complex things?

Quoted from Arie

Why do you need to learn Perl? :)

School, we get taught VB in-depth, and have to teach ourselves the basics of either Perl or PHP, I went for Perl because it sounds nicer :D

Add A Reply Pages: 1 2 Next »