Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
The stupid question is the question not asked
 
PerlMonks  

START PERL

by smaz
on Mar 03, 2011 at 00:35 UTC ( #891136=perlquestion: print w/ replies, xml ) Need Help??
smaz has asked for the wisdom of the Perl Monks concerning the following question:

HEY I USE WINDOWS XP.I RECENTLY BOUGHT O'REILLY's LEARNING PERL TO LEARN PERL.I TRIED TO USE STRAWBERRY PERL,BUT CAN'T UNDERSTAND HOW TO START PERL INTERPRETER IN CMD,OR HOW TO WRITE PROGRAMS IN IT.IT SEEMS THE BOOK IS NEARLY ONLY FOR UNIX USERS. PLEASE HELP. ARE THEIR ANY GOOD IDEs THAT ARE BETTER?

Comment on START PERL
Re: START PERL
by GrandFather (Cardinal) on Mar 03, 2011 at 01:09 UTC

    First off you need to fix your keyboard so that you can use lower case characters. Perl is case sensitive and will not like you at all if you shout at it all the time!

    I have heard that Padre is a good starting point in terms of a Perl IDE.

    See the Tutorials section for a pile of introductory and other stuff to get you started with Perl. Your very first Perl "script" could be as simple as typing:

    perl -e "print qq{Hello world\n}"

    at a Windows command line and pressing enter. If that doesn't work then you need to either add the path to the perl\bin directory to your path, or provide the full path to perl.exe.

    Beyond that you need to use some form of editor to create a file with a .pl extension. Put print "Hello world\n"; in a file called "hello.pl", then with your current directory set to the same directory as the file you can type perl hello.pl on the command line to run it.

    True laziness is hard work
Re: START PERL
by trwww (Curate) on Mar 03, 2011 at 01:48 UTC
Re: START PERL
by CountZero (Chancellor) on Mar 03, 2011 at 07:23 UTC
    ActiveState has the Komodo IDE. The free version of it is called Komodo-edit.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Re: START PERL
by dHarry (Monsignor) on Mar 03, 2011 at 10:17 UTC

    I recommend Eclipse with the EPIC plugin. It served me well on Windows (several flavors), Linux Redhat and more recently on my Mac. You can use it with Strawberry, Activestate etc. I use Eclipse also for other languages. The nice part is that are many plugins to integrate with other tools e.g. Subversion, Maven, Jira, Hudson to name just a few. See here for all the stuff that is available. So one integrated environment instead of having to glue the bits and pieces together.

    But let me also mention some of the possible disadvantages:

    • It's written in Java, if you are allergic it's a no-go.
    • It's a big beast, i.e. not the fastest IDE in the world (some would say a resosurce hog;)

    For me the advantages by far out-weight the disadvantages.

    Cheers

    Harry

Re: START PERL
by marto (Chancellor) on Mar 03, 2011 at 10:44 UTC

    Hi smaz, welcome the Monastery.

    Strawberry perl should show up on your 'All programs' menu, and display a number of options including links to the Strawberry Perl documentation, the perl documentation, the cpan shell and a Windows command prompt, from where you can run your perl scripts, e.g. c:\perl YourScriptName.pl.

    In addition to the Strawberry perl links you should now see on your computer you should check out:

    Others have pointed you towards various IDE solutions, if you take a look at what each has to offer I'm sure you'll find one that suits you. Padre is a Perl IDE written in Perl. To start with a text editor with Syntax_highlighting (such as notepad++) may suffice.

    You may have noticed some messages saying you've lost an experience point, don't worry too much about this (see The Role of XP in PerlMonks). It looks as though your post has received a few 'down votes' from other users, I'm sure this is purely based on your text all being upper case. Don't take it personally or let it discourage you from posting in future. When posting just write normally, and pay attention to the Markup in the Monastery and How do I post a question effectively?. I appreciate that this (posting etiquette/formatting) may be a lot to take in all at once, on top of learning Perl but there really isn't that much too it. After a few posts it should become much easier.

    Hope this helps.

    Update: Added notpad++ link.

Re: START PERL
by JavaFan (Canon) on Mar 03, 2011 at 11:25 UTC
    HOW TO WRITE PROGRAMS IN IT
    I think that's the heart of your problem. Perl isn't an application you start and then you're doing things in it - it's not a game. First you write a program, using whatever means you find most comfortable, and only then you start Perl, giving it the program you wrote to run. And Perl stops once it's done running your program.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://891136]
Approved by GrandFather
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2014-04-20 19:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (487 votes), past polls